Skip to content
Commit 194fe322 authored by Christian Göttsche's avatar Christian Göttsche Committed by Zbigniew Jędrzejewski-Szmek
Browse files

selinux: delay mac_selinux_enforcing call after SELinux was determined to be enabled

Calling `mac_selinux_enforcing()`, which calls `security_getenforce()`, on a SELinux disabled system causes the following error message to be printed:
    Failed to get SELinux enforced status: No such file or directory

Fixes: 257188f8 ("selinux: cache enforced status and treat retrieve failure as enforced mode")
Supersedes: #15145
parent cc46b9d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment