platform_external_selinux/policycoreutils/restorecond
Janis Danisevskis 50f0910cf0 libselinux: add support for pcre2
This patch moves all pcre1/2 dependencies into the new files regex.h
and regex.c implementing the common denominator of features needed
by libselinux. The compiler flag -DUSE_PCRE2 toggles between the
used implementations.

As of this patch libselinux supports either pcre or pcre2 but not
both at the same time. The persistently stored file contexts
information differs. This means libselinux can only load file
context files generated by sefcontext_compile build with the
same pcre variant.

Also, for pcre2 the persistent format is architecture dependent.
Stored precompiled regular expressions can only be used on the
same architecture they were generated on. If pcre2 is used,
sefcontext_compile now respects the "-r". This flag makes
sefcontext_compile include the precompiled regular expressions
in the output file. The default is to omit them, so that the
output remains portable at the cost of having to recompile
the regular expressions at load time, or rather on first use.

Signed-off-by: Janis Danisevskis <jdanis@google.com>
2016-09-15 13:49:14 -04:00
..
Makefile libselinux: add support for pcre2 2016-09-15 13:49:14 -04:00
org.selinux.Restorecond.service policycoreutils: restorecond: make restorecond dbuss-able 2011-11-02 16:22:05 -04:00
restorecond.8 policycoreutils: restorecond: Add -h option to get usage command 2012-06-28 13:29:23 -04:00
restorecond.c policycoreutils: restorecond - Modify to use selinux_restorecon 2016-08-11 14:34:02 -04:00
restorecond.conf policycoreutils: restorecond: Add /etc/udpatedb.conf to restorecond.conf 2013-02-05 20:14:48 -05:00
restorecond.desktop Fix up desktop files to match current standards 2013-11-08 15:50:59 -05:00
restorecond.h policycoreutils: restorecond - Modify to use selinux_restorecon 2016-08-11 14:34:02 -04:00
restorecond.init policycoreutils: restorecond: make restorecond dbuss-able 2011-11-02 16:22:05 -04:00
restorecond.service Improve restorecond systemd unit file 2013-11-06 09:36:28 -05:00
restorecond_user.conf policycoreutils: restorecond: Add .local/share as a directory to watch 2011-11-02 16:22:06 -04:00
stringslist.c Author: Daniel J Walsh 2009-02-17 11:42:15 -05:00
stringslist.h Author: Daniel J Walsh 2009-02-17 11:42:15 -05:00
user.c Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
utmpwatcher.c policycoreutils: fix most gcc -Wwrite-strings warnings 2014-10-02 09:56:34 -04:00
utmpwatcher.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
watch.c policycoreutils: restorecond - Modify to use selinux_restorecon 2016-08-11 14:34:02 -04:00