Add new location for policy files
Add new location for policy, /data/security, which has
precedence over /data/system
Change-Id: If75da3889c75ca83eb7dbd6e5540657a4cf65831
diff --git a/src/android.c b/src/android.c
index d299ade..8027cd4 100644
--- a/src/android.c
+++ b/src/android.c
@@ -29,16 +29,19 @@
* on app data directories.
*/
static char const * const seapp_contexts_file[] = {
+ "/data/security/seapp_contexts",
"/data/system/seapp_contexts",
"/seapp_contexts",
0 };
static const struct selinux_opt seopts[] = {
+ { SELABEL_OPT_PATH, "/data/security/file_contexts" },
{ SELABEL_OPT_PATH, "/data/system/file_contexts" },
{ SELABEL_OPT_PATH, "/file_contexts" },
{ 0, NULL } };
static const char *const sepolicy_file[] = {
+ "/data/security/sepolicy",
"/data/system/sepolicy",
"/sepolicy",
0 };