Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -91,6 +91,7 @@ struct { ...@@ -91,6 +91,7 @@ struct {
{ "persist.service.", AID_SYSTEM, 0 }, { "persist.service.", AID_SYSTEM, 0 },
{ "persist.security.", AID_SYSTEM, 0 }, { "persist.security.", AID_SYSTEM, 0 },
{ "persist.service.bdroid.", AID_BLUETOOTH, 0 }, { "persist.service.bdroid.", AID_BLUETOOTH, 0 },
{ "persist.selinux.enforcing", AID_SYSTEM, 0},
{ "selinux." , AID_SYSTEM, 0 }, { "selinux." , AID_SYSTEM, 0 },
{ NULL, 0, 0 } { NULL, 0, 0 }
}; };
......
...@@ -409,6 +409,12 @@ on property:selinux.reload_policy=1 ...@@ -409,6 +409,12 @@ on property:selinux.reload_policy=1
restart ueventd restart ueventd
restart installd restart installd
on property:persist.selinux.enforcing=1
setenforce 1
on property:persist.selinux.enforcing=0
setenforce 0
service console /system/bin/sh service console /system/bin/sh
class core class core
console console
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment