sepolicy: Fix a few denials
* From sysinit and adbd Change-Id: I56505e34774f9697a7f336efb43808a651a871f8
This commit is contained in:
1
sepolicy/adbd.te
Normal file
1
sepolicy/adbd.te
Normal file
@@ -0,0 +1 @@
|
||||
set_prop(adbd, adbsecure_prop)
|
@@ -1,3 +1,4 @@
|
||||
type adbtcp_prop, property_type;
|
||||
type recovery_prop, property_type;
|
||||
type userinit_prop, property_type;
|
||||
type adbsecure_prop, property_type;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
adb.network.port u:object_r:adbtcp_prop:s0
|
||||
recovery.perf.mode u:object_r:recovery_prop:s0
|
||||
adb.secure u:object_r:recovery_prop:s0
|
||||
ro.adb.secure u:object_r:adbsecure_prop:s0
|
||||
cm.userinit.active u:object_r:userinit_prop:s0
|
||||
|
@@ -7,6 +7,8 @@ init_daemon_domain(sysinit)
|
||||
allow sysinit devpts:chr_file { rw_file_perms };
|
||||
allow sysinit shell_exec:file { rx_file_perms };
|
||||
allow sysinit system_file:file { rx_file_perms };
|
||||
allow sysinit system_file:dir { r_dir_perms };
|
||||
allow sysinit toolbox_exec:file { rx_file_perms };
|
||||
allow sysinit self:process setcurrent;
|
||||
|
||||
userdebug_or_eng(`
|
||||
|
Reference in New Issue
Block a user