aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/getenforce.c
Commit message (Collapse)AuthorAgeFilesLines
* libselinux: add O_CLOEXECNick Kralevich2017-04-121-1/+1
| | | | | | | Makes libselinux safer and less likely to leak file descriptors when used as part of a multithreaded program. Signed-off-by: Nick Kralevich <nnk@google.com>
* libselinux: normalize enforce values from the kernelStephen Smalley2016-11-181-1/+1
| | | | | | | | | | | Normalize enforce values received from the kernel via /sys/fs/selinux/enforce or netlink selinux notifications to ensure that we always return a 0 or 1 to userspace code. selinux_status_getenforce(), which reads the enforce value via the SELinux kernel status page (/sys/fs/selinux/status) already normalizes its result, so we do not need to update it. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* initial import from svn trunk revision 2950Joshua Brindle2008-08-191-0/+40