selinux/libselinux
KaiGai Kohei bc2a8f418e libselinux: add selinux_status_* interfaces for /selinux/status
The attached patch adds several interfaces to reference /selinux/status
according to sequential-lock logic.

selinux_status_open() open the kernel status page and mmap it with
read-only mode, or open netlink socket as a fallback in older kernels.

Then, we can obtain status information from the mmap'ed page using
selinux_status_updated(), selinux_status_getenfoce(),
selinux_status_policyload() or selinux_status_deny_unknown().

It enables to help to implement userspace avc with heavy access control
decision; that we cannot ignore the cost to communicate with kernel for
validation of userspace caches.

Signed-off-by: Steve Lawrence <slawrence@tresys.com>
2011-03-01 11:21:19 -05:00
..
include libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
man libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
src libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
utils Author: Daniel J Walsh 2009-09-28 16:17:23 -04:00
.gitignore Add subdirectory .gitignore files. 2009-10-20 21:25:55 -04:00
ChangeLog bump checkpolicy to 2.0.23 2010-12-16 14:11:57 -05:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
VERSION bump checkpolicy to 2.0.23 2010-12-16 14:11:57 -05:00