diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-03-17 18:11:14 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-19 08:56:30 +0100 |
commit | 194fe32296b5079cf4edcffbe15f672ff8a9e762 (patch) | |
tree | 07888b155d36c49f1f1f8faf91a1f703e7fe5f20 /src/network/networkctl.c | |
parent | cc46b9d91399aed39eb64fa07283e40eb8262078 (diff) | |
download | systemd-194fe32296b5079cf4edcffbe15f672ff8a9e762.tar.gz |
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: 257188f80ce1a083e3a88b679b898a73fecab53b ("selinux: cache enforced status and treat retrieve failure as enforced mode")
Supersedes: #15145
Diffstat (limited to 'src/network/networkctl.c')
0 files changed, 0 insertions, 0 deletions