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

Commit 8a178c18 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "init: Fix restorecon for /metadata."

parents cb76bf05 4bb500fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -539,9 +539,9 @@ void SelinuxRestoreContext() {

    // adb remount, snapshot-based updates, and DSUs all create files during
    // first-stage init.
    selinux_android_restorecon("/metadata", SELINUX_ANDROID_RESTORECON_RECURSE);

    selinux_android_restorecon(SnapshotManager::GetGlobalRollbackIndicatorPath().c_str(), 0);
    selinux_android_restorecon("/metadata/gsi", SELINUX_ANDROID_RESTORECON_RECURSE |
                                                        SELINUX_ANDROID_RESTORECON_SKIP_SEHASH);
}

int SelinuxKlogCallback(int type, const char* fmt, ...) {