implement partial matching using PCRE
Nick Kralevich authored
To speed up the boot process, Android doesn't visit every directory
in /sys. Instead, only those directories which match a regular
expression in /file_contexts are visited. Other directories are
skipped. This results in 2-3 second boot time reduction.

The initial version of this optimization was implemented in
change 0e7340fb. However, because
PCRE wasn't available, it was recognized that false positives and
false negatives might occur.

Now that PCRE is available, start using it. It will avoid the
false positive / negatives problem.

Bug: 17682157
Change-Id: I94a109733b0c97a70f80c94fd0a980cb7cb5ca43
d0b768ab
Name Last commit Last update
..
android.c Add isOwner= input selector for seapp_contexts.
avc.c Get rid of security_context_t and fix const declarations.
avc_internal.c Ensure that we only close the selinux netlink socket once.
avc_internal.h Port of libselinux to Android.
avc_sidtab.c Get rid of security_context_t and fix const declarations.
avc_sidtab.h Get rid of security_context_t and fix const declarations.
booleans.c Apply const to SELboolean array and name field.
callbacks.c Get rid of security_context_t and fix const declarations.
callbacks.h Get rid of security_context_t and fix const declarations.
canonicalize_context.c Get rid of security_context_t and fix const declarations.
checkAccess.c Get rid of security_context_t and fix const declarations.
check_context.c Get rid of security_context_t and fix const declarations.
compute_av.c Get rid of security_context_t and fix const declarations.
compute_create.c Get rid of security_context_t and fix const declarations.
context.c Port of libselinux to Android.
context_internal.h Port of libselinux to Android.
deny_unknown.c Add selinux status functions from upstream libselinux.
disable.c Port of libselinux to Android.
dso.h Port of libselinux to Android.
enabled.c Get rid of security_context_t and fix const declarations.
fgetfilecon.c Get rid of security_context_t and fix const declarations.
freecon.c Get rid of security_context_t and fix const declarations.
fsetfilecon.c Get rid of security_context_t and fix const declarations.
get_initial_context.c Get rid of security_context_t and fix const declarations.
getenforce.c Port of libselinux to Android.
getfilecon.c
getpeercon.c
init.c
label.c
label_android_property.c
label_file.c
label_internal.h
lgetfilecon.c
load_policy.c
lsetfilecon.c
mapping.c
mapping.h
policy.h
policyvers.c
procattr.c
selinux_internal.h
selinux_netlink.h
sestatus.c
setenforce.c
setfilecon.c
stringrep.c