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

Commit b89bdfde authored by repo sync's avatar repo sync
Browse files

Add persistent property for SELinux enforcment status.

Also adds triggers for going between enforcing and
permissive status.

Bug: 8702843
Change-Id: I841d80999b96acf6b6fd0a5408fb074952d6ae72
parent 7ee2e26e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ struct {
    { "persist.service.", AID_SYSTEM,   0 },
    { "persist.security.", AID_SYSTEM,   0 },
    { "persist.service.bdroid.", AID_BLUETOOTH,   0 },
    { "persist.selinux.enforcing", AID_SYSTEM,  0},
    { "selinux."         , AID_SYSTEM,   0 },
    { NULL, 0, 0 }
};
+6 −0
Original line number Diff line number Diff line
@@ -409,6 +409,12 @@ on property:selinux.reload_policy=1
    restart ueventd
    restart installd

on property:persist.selinux.enforcing=1
    setenforce 1

on property:persist.selinux.enforcing=0
    setenforce 0

service console /system/bin/sh
    class core
    console