am 91b7d911: Set SELABEL_OPT_BASEONLY to stop additional file checks

* commit '91b7d911c51f972f127972bc5c529310387fba8b':
  Set SELABEL_OPT_BASEONLY to stop additional file checks
diff --git a/src/android.c b/src/android.c
index 975906b..8f66a5a 100644
--- a/src/android.c
+++ b/src/android.c
@@ -1383,10 +1383,17 @@
 
 struct selabel_handle* selinux_android_file_context_handle(void)
 {
+    char *path = NULL;
     struct selabel_handle *sehandle;
+    struct selinux_opt fc_opts[] = {
+        { SELABEL_OPT_PATH, path },
+        { SELABEL_OPT_BASEONLY, (char *)1 }
+    };
 
     set_policy_index();
-    sehandle = selabel_open(SELABEL_CTX_FILE, &seopts[policy_index], 1);
+    fc_opts[0].value = seopts[policy_index].value;
+
+    sehandle = selabel_open(SELABEL_CTX_FILE, fc_opts, 2);
 
     if (!sehandle) {
         selinux_log(SELINUX_ERROR, "%s: Error getting file context handle (%s)\n",
@@ -1398,7 +1405,7 @@
         return NULL;
     }
     selinux_log(SELINUX_INFO, "SELinux: Loaded file_contexts contexts from %s.\n",
-            seopts[policy_index].value);
+            fc_opts[0].value);
 
     return sehandle;
 }