platform_external_selinux/libselinux
William Roberts ba9bb2ebcb libselinux: correct error path to always try text
patch 5e15a52aaa cleans up the process_file() routine,
but introduced a bug. If the binary file cannot be
opened, always attempt to fall back to the textual file,
this was not occurring.

The logic should be:
1. Open the newest file between base path + suffix and
   base_path + suffix + ".bin"
2. If anything fails, attempt to load the oldest file.

The result, with a concrete example, would be:
If file_contexts is the newest file, and it cannot be
processed, the code will fall back to file_contexts.bin
and vice versa.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
2016-09-19 09:48:11 -04:00
..
include libselinux: Add setfiles support to selinux_restorecon(3) 2016-08-11 14:33:55 -04:00
man libselinux: Add setfiles support to selinux_restorecon(3) 2016-08-11 14:33:55 -04:00
src libselinux: correct error path to always try text 2016-09-19 09:48:11 -04:00
utils libselinux: add support for pcre2 2016-09-15 13:49:14 -04:00
ChangeLog Updated libselinux ChangeLog. 2016-09-15 13:50:30 -04:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: add support for pcre2 2016-09-15 13:49:14 -04:00
VERSION Update ChangeLog and VERSION for final release 2016-02-23 11:31:41 -05:00