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

Commit a02393d4 authored by Sandeep Patil's avatar Sandeep Patil Committed by android-build-merger
Browse files

init: explicitly label all selinux files in rootfs

am: f5b99d4f

Change-Id: I0592c29f186f3baa69462a040765189534da189c
parents c7d933a2 f5b99d4f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -886,8 +886,18 @@ static void selinux_restore_context() {
    restorecon("/dev/random");
    restorecon("/dev/urandom");
    restorecon("/dev/__properties__");

    restorecon("/file_contexts.bin");
    restorecon("/plat_file_contexts");
    restorecon("/nonplat_file_contexts");
    restorecon("/plat_property_contexts");
    restorecon("/nonplat_property_contexts");
    restorecon("/plat_seapp_contexts");
    restorecon("/nonplat_seapp_contexts");
    restorecon("/plat_service_contexts");
    restorecon("/nonplat_service_contexts");
    restorecon("/sepolicy");

    restorecon("/sys", SELINUX_ANDROID_RESTORECON_RECURSE);
    restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE);
    restorecon("/dev/device-mapper");