-
Notifications
You must be signed in to change notification settings - Fork 48
Description
4 out of 8 module_load tests fail when kernel is in integrity lockdown mode.
Tested in Fedora and AzureLinux as well.
Here's my analysis, supporting test output and code references can be found in the attachments.
Both failing selinux types(domains) have allow_lockdown_integrity set, which is supposed to allow module load in integrity mode. i.e. to bypass the lockdown.
Please note that the tests pass when lockdown is none.
I tried to find whether the lockdown rules are getting applied, but all other lockdown mode tests are removed in an older commit.
I believe that in integrity mode, selinux will not be allowed to bypass lockdown, and that the failure is expected.
If that is the case, then the test can detect lockdown mode. If enabled, "Key rejected by the service" would be the expected error.
selinux_failing_test_output_azLinux.txt
selinuxcode_references.txt