Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e25fa18 authored by Geremy Condra's avatar Geremy Condra Committed by Android Git Automerger
Browse files

am ebcf93e3: Add logic to fixup file contexts after a policy update.

* commit 'ebcf93e3':
  Add logic to fixup file contexts after a policy update.
parents 6673886d ebcf93e3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -745,7 +745,7 @@ static int bootchart_init_action(int nargs, char **args)
#endif

static const struct selinux_opt seopts_prop[] = {
        { SELABEL_OPT_PATH, "/data/security/property_contexts" },
        { SELABEL_OPT_PATH, "/data/security/current/property_contexts" },
        { SELABEL_OPT_PATH, "/property_contexts" },
        { 0, NULL }
};
@@ -793,6 +793,11 @@ int selinux_reload_policy(void)
        selabel_close(sehandle_prop);

    selinux_init_all_handles();

    selinux_android_fixcon("/data");
    selinux_android_fixcon("/system");
    selinux_android_fixcon("/dev");

    return 0;
}