Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Update daemon contexts for enforcing SELinux policies
Browse files Browse the repository at this point in the history
Imported from CyanogenMod/Superuser 7c7a44d
  • Loading branch information
wvengen committed Feb 24, 2016
1 parent f9092fc commit d3b5d90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions init.superuser.rc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# su daemon
service su_daemon /system/xbin/su --daemon
seclabel u:r:sudaemon:s0
oneshot

on property:persist.sys.root_access=0
Expand All @@ -13,3 +14,9 @@ on property:persist.sys.root_access=1

on property:persist.sys.root_access=3
start su_daemon

on property:init.svc.su_daemon=running
mkdir /dev/com.android.settings.daemon 0755 root root
restorecon_recursive /dev/com.android.settings.daemon
mkdir /dev/com.android.settings 0755 root root
restorecon_recursive /dev/com.android.settings

0 comments on commit d3b5d90

Please sign in to comment.