mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-11 16:09:47 +00:00
3f99b14939
load_mmap and regex_load_mmap (in the !USE_PCRE2 case) were incorrectly treating the absence of any fixed stems or study data as an error, rejecting valid file_contexts.bin files. Remove the extraneous validation checks. Test: $ cat > file_contexts <<EOF (/.*)? u:object_r:system_file:s0 /lib u:object_r:system_dir:s0 EOF $ sefcontext_compile file_contexts $ selabel_lookup -b file -k /lib -f file_contexts.bin Before: ERROR: selabel_open - Could not obtain handle. After: Default context: u:object_r:system_dir:s0 Reported-by: Jiyong Park <jiyong@google.com> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> |
||
---|---|---|
.. | ||
include | ||
man | ||
src | ||
utils | ||
LICENSE | ||
Makefile | ||
VERSION |