libselinux: support file_contexts.bin without file_contexts
Stephen Smalley authored

Change the label_file backend in libselinux to support systems
that only have file_contexts.bin files installed and do not ship
a file_contexts file at all.  Only fail if neither file can be
loaded.

Change-Id: I15660f4b3e4c5cb8ae0ec1498c74d6fcbb9a0400
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
bcd374d8
Name Last commit Last update
..
android.c restorecon: do not set security.restorecon_last on ramfs and tmpfs
avc.c Coding style fix for sizeof operator.
avc_internal.c libselinux: Fix errors found by coverity
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 Log an error on unknown classes and permissions.
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 libselinux: is_selinux_enabled(): drop no-policy-loaded test.
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_file.h
label_internal.h
label_support.c
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