platform_external_selinux/policycoreutils
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
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
audit2allow audit2allow: tests should use local copy not system 2016-08-19 08:45:10 -04:00
gui policycoreutils/gui: py3 support for modules that changed name 2016-08-05 12:57:08 -04:00
hll policycoreutils/hll/pp: Warn if module name different than output filename 2016-04-12 10:41:04 -04:00
load_policy Minor manpages improvements 2013-11-06 09:36:33 -05:00
man Merge branch 'fedora' into master-merge 2013-10-24 15:24:17 -04:00
mcstrans policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
newrole policycoreutils: newrole: add missing defined in #if 2016-02-01 08:54:30 -05:00
po policycoreutils: Remove unused autoconf files from po/ 2016-07-25 13:54:49 -04:00
restorecond libselinux: add support for pcre2 2016-09-15 13:49:14 -04:00
run_init open_init_pty: Do not error on EINTR 2016-07-12 15:35:23 -04:00
sandbox sandbox: fix file labels on copied files 2016-09-15 13:47:25 -04:00
scripts policycoreutils: 'fixfiles check' should not change anything 2016-08-09 15:55:26 -04:00
secon Added missing descriptions for --*-key params in secon man page. 2016-01-12 08:39:14 -05:00
semanage semanage: fix error message for fcontext -m 2016-08-18 15:21:37 -04:00
semodule policycoreutils: semodule - remove 'q' from getopt string 2016-08-04 08:42:15 -04:00
semodule_deps Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
semodule_expand tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_link tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_package libselinux, policycoreutils: Man page warning fixes 2015-11-24 16:32:13 -05:00
sepolgen-ifgen tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
sepolicy policycoreutils/sepolicy: Check get_rpm_nvr_list() return value 2016-08-09 15:55:08 -04:00
sestatus Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
setfiles policycoreutils: setfiles - Modify to use selinux_restorecon 2016-08-11 14:33:58 -04:00
setsebool libselinux, policycoreutils: Man page warning fixes 2015-11-24 16:32:13 -05:00
.gitignore policycoreutils: add a HLL compiler to convert policy packages (.pp) to CIL 2014-08-26 08:03:31 -04:00
ChangeLog Updated policycoreutils ChangeLog 2016-09-15 13:49:00 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile policycoreutils: add a HLL compiler to convert policy packages (.pp) to CIL 2014-08-26 08:03:31 -04:00
VERSION Update ChangeLog and VERSION for final release 2016-02-23 11:31:41 -05:00