]> git.ipfire.org Git - thirdparty/systemd.git/commit
selinux: use SELinux status page
authorChristian Göttsche <cgzones@googlemail.com>
Sat, 22 Aug 2020 18:39:50 +0000 (20:39 +0200)
committerChristian Göttsche <cgzones@googlemail.com>
Thu, 27 Aug 2020 08:28:53 +0000 (10:28 +0200)
commitfd5e402fa9377f2860e02bdb5b84d5f5942e73f4
treeb7cadf85ac40a0a7b09a8f8ab0cf17037ed181de
parentb2c185bae9bc95b3038fb2fbb5e620806a03e06c
selinux: use SELinux status page

Switch from security_getenforce() and netlink notifications to the
SELinux status page.

This usage saves system calls and will also be the default in
libselinux > 3.1 [1].

[1]: https://github.com/SELinuxProject/selinux/commit/05bdc03130d741e53e1fb45a958d0a2c184be503
src/basic/selinux-util.c
src/basic/selinux-util.h
src/core/selinux-access.c