Skip to content

module_load test fails in integrity lockdown mode #101

@sindhu-karri

Description

@sindhu-karri

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions