selinux/libselinux
Stephen Smalley 6e2bdb770f libselinux, sefcontext_compile: handle NULL pcre study data
pcre_study() can return a NULL result if no additional information
could be determined for the pattern.  Thus, sefcontext_compile
needs to correctly handle the case where the study data is NULL
when generating file_contexts.bin, and libselinux needs to correctly
handle it when loading file_contexts.bin.  Fix them both.

This change enables:
semanage fcontext -a -t httpd_exec_t "(/.*)?"
to succeed, since the regex itself is valid but there is no
additional information produced by pcre_study().

Reported-by: Vit Mojzis <vmojzis@redhat.com>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-08-17 15:05:48 -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, sefcontext_compile: handle NULL pcre study data 2016-08-17 15:05:48 -04:00
utils libselinux, sefcontext_compile: handle NULL pcre study data 2016-08-17 15:05:48 -04:00
ChangeLog Updated libselinux and policycoreutils ChangeLogs. 2016-08-11 14:38:52 -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 Update ChangeLog and VERSION for final release 2016-02-23 11:31:41 -05:00