platform_external_selinux/libselinux
Stephen Smalley 8a9d25a8e9 libselinux: do not treat an empty file_contexts(.local) as an error
file_contexts can be legitimately empty, particularly when dealing with
a file_contexts.local file.  The change to test for file_contexts.bin
format by magic number was treating an EOF condition as a fatal error,
thereby causing an error on empty file_contexts.local files.  Only
treat it as an error if there was truly an error on the read, as
checked via ferror().  Otherwise, clear the error and EOF indicators
so that they do not persist when we rewind the file and try to read
it as text.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2015-08-07 10:02:35 -04:00
..
include libselinux: add selabel_cmp interface and label_file backend 2015-08-06 11:34:00 -04:00
man libselinux: Add const to selinux_opt for label backends. 2015-07-10 12:30:09 -04:00
src libselinux: do not treat an empty file_contexts(.local) as an error 2015-08-07 10:02:35 -04:00
utils libselinux: Fix binary file labels for regexes with metachars 2015-07-06 11:09:12 -04:00
ChangeLog Updated libselinux ChangeLog. 2015-08-06 14:58:08 -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