platform_external_selinux/libselinux
Stephen Smalley aab9d90b35 libselinux: Correctly handle an empty file_contexts file.
If you add some local file contexts via semanage fcontext -a and
later delete them all via semanage fcontext -D, you get an empty
file_contexts.local file.  Then when you try to load it, getline()
returns 0 and we fall through to the out path without having set rc.
In label_file.c, rc will always be non-zero at this point because
we will have failed the load_mmap() call.  In sefcontext_compile,
rc may contain random garbage at this point.  Explicitly set rc
before the loop.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2015-06-22 09:11:33 -04:00
..
include libselinux: add selinux_openssh_contexts_path() 2015-05-21 13:11:36 -04:00
man libselinux: Enhance file context support 2015-06-16 12:30:08 -04:00
src libselinux: Correctly handle an empty file_contexts file. 2015-06-22 09:11:33 -04:00
utils libselinux: Correctly handle an empty file_contexts file. 2015-06-22 09:11:33 -04:00
ChangeLog Update libselinux ChangeLog. 2015-06-16 12:30:35 -04:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: Refactor rpm_execcon() into a new setexecfilecon() 2014-01-06 14:06:03 -05:00
VERSION Bump to final release 2015-02-02 09:38:10 -05:00