selinux/libselinux
Jeff Vander Stoep 35a7c3e536 libselinux: Fix file labels for regexes with metachars
File labels assigned using the lookup_best_match() function do not
assign the best match if its regex contains metacharacters.

For non-exact regex matches, lookup_best_match() finds the closest match
by tracking the length of the matching prefix. Prefix match is tracked via
the prefix_len variable. This was previously calculated and set in
the spec_hasMetaChars() function. Commit 3cb6078 removed the
prefix_len calculation, this commit restores it.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
2015-07-06 10:58:09 -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: Fix file labels for regexes with metachars 2015-07-06 10:58:09 -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-26 12:58:16 -04:00
LICENSE
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