Conversation
8611c42 to
3d6b7e7
Compare
src/ipahealthcheck/meta/core.py
Outdated
| if not os.path.exists(paths.PROC_FIPS_ENABLED): | ||
| fips = "missing {}".format(paths.PROC_FIPS_ENABLED) | ||
| logger.debug("Can't find %s, skipping" % | ||
| paths.PROC_FIPS_ENABLED) |
There was a problem hiding this comment.
I'm a bit torn on this related to other distributions, whether enforcing that the file exist would break them.
When I originally wrote this I didn't want to hold it against a user that they didn't have a tool installed. But the file in /proc should be created by the kernel so if that's missing it points to a larger issue.
I think we should set rval to WARNING in this case. This file is created by the kernel so if FIPS is disabled in the KERNEL that seems odd. A user can suppress the warning if indeed they have this use-case.
There was a problem hiding this comment.
I think we can make the assumption, that this file exists, otherwise, the user is using a custom kernel and is probably not thinking about FIPS at all. Nevertheless, the return value is a warning now.
RHEL10 doesn't support fips-mode-setup, therefore this call has been replaced with simple reading of a proc file. The tests have been edited accordingly, inconsistent has been removed and instead replaced by a test supplying an arbitrary value, that should never occur. Fixes: freeipa#350 Signed-off-by: David Hanina <dhanina@redhat.com>
Also renamed test_fips_no_fips_enabled to test_fips_no_fips_available as this name is more fitting, meaning the kernel is missing fips. Signed-off-by: David Hanina <dhanina@redhat.com>
78dfe71 to
1e3225b
Compare
The missing PROC_FIPS_ENABLED should be considered a bug in the base package, therefore no need to check here. Signed-off-by: David Hanina <dhanina@redhat.com>
70b4ec8 to
ad2620d
Compare
|
thanks, looks good. |
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Fix freeipa/freeipa-healthcheck#349 was added for RHEL10 only causing the tests to fail in RHEL10.1. Hence the if condition has been changed in the testcode. Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
RHEL10 doesn't support fips-mode-setup, therefore this call has been replaced with simple reading of a proc file. The tests have been edited accordingly, inconsistent has been removed and instead replaced by a test supplying an arbitrary value, that should never occur.
Fixes: #350