Go to file
Eric Paris b3b19fdce5 libselinux: load_policy: handle selinux=0 and /sys/fs/selinux not exist
Handle situation where selinux=0 passed to the kernel and both /selinux and
/sys/fs/selinux directories do not exist.  We used to handle selinux=0
(or kernel compile without selinux) by getting ENODEV when we tried to
mount selinuxfs on /selinux.  Now selinux=0 means that /sys/fs/selinux
won't exist and we never create the real directory /selinux at all. So
we get ENOENT instead of ENODEV.  The solution is to check to see if the
mount failure was for ENODEV and if not to check if selinuxfs exists in
/proc/filesystems at all.  If it doesn't exist, that's equivalent to
ENODEV.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2011-11-02 15:37:10 -04:00
checkpolicy Revert "checkpolicy: Redo filename/filesystem syntax to support filename trans rules" 2011-11-02 13:04:39 -04:00
libselinux libselinux: load_policy: handle selinux=0 and /sys/fs/selinux not exist 2011-11-02 15:37:10 -04:00
libsemanage Bump version and changelog for all components. 2011-09-16 15:34:36 -04:00
libsepol Bump version and changelog for all components. 2011-09-16 15:34:36 -04:00
policycoreutils tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
scripts release script 2009-03-12 01:23:32 -04:00
sepolgen Bump version and changelog for all components. 2011-09-16 15:34:36 -04:00
.gitignore .gitignore: More files to ignore 2011-09-16 11:54:04 -04:00
Makefile global: Makefile: create global 'all' target 2011-08-26 14:27:57 -04:00