platform_external_selinux/libselinux
Stephen Smalley c19395d722 libselinux: selinux_set_mapping: fix handling of unknown classes/perms
The libselinux selinux_set_mapping() implementation was never updated
to handle unknown classes/permissions based on the policy handle_unknown
flag.  Update it and the internal mapping functions to gracefully
handle unknown classes/permissions.  Add a security_reject_unknown()
interface to expose the corresponding selinuxfs node and use it when
creating a mapping to decide whether to fail immediately or proceed.

This enables dbus-daemon and XSELinux, which use selinux_set_mapping(),
to continue working with the dummy policy or other policies that lack
their userspace class/permission definitions as long as the policy
was built with -U allow.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2019-03-01 12:51:31 +01:00
..
include libselinux: selinux_set_mapping: fix handling of unknown classes/perms 2019-03-01 12:51:31 +01:00
man Allow installing translated man pages 2019-01-28 12:03:57 +01:00
src libselinux: selinux_set_mapping: fix handling of unknown classes/perms 2019-03-01 12:51:31 +01:00
utils libselinux: Change matchpathcon usage to match with matchpathcon manpage 2019-02-04 22:11:22 +01:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: Add support for pcre2 to pkgconfig definition 2017-10-13 15:24:23 -04:00
VERSION Update VERSIONs to 2.9-rc1 for release. 2019-01-25 11:48:54 +01:00