logpersist: reserve persist.logd.logpersistd
shell, system_app and logd access granted on debug builds only Bug: 28936216 Change-Id: Ib9648e8565cc0ea0077cf0950b0e4ac6fe0a3135
This commit is contained in:
parent
38ac77e4c2
commit
68d67a0fd1
5 changed files with 5 additions and 0 deletions
1
logd.te
1
logd.te
|
@ -28,6 +28,7 @@ set_prop(logd, powerctl_prop)
|
|||
|
||||
# Access device logging gating property
|
||||
get_prop(logd, device_logging_prop)
|
||||
userdebug_or_eng(`get_prop(logd, logpersistd_logging_prop)')
|
||||
|
||||
r_dir_file(logd, domain)
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ type ctl_bugreport_prop, property_type;
|
|||
type ctl_console_prop, property_type;
|
||||
type audio_prop, property_type, core_property_type;
|
||||
type logd_prop, property_type, core_property_type;
|
||||
type logpersistd_logging_prop, property_type;
|
||||
type mmc_prop, property_type;
|
||||
type restorecon_prop, property_type, core_property_type;
|
||||
type security_prop, property_type, core_property_type;
|
||||
|
|
|
@ -42,6 +42,7 @@ persist.bluetooth. u:object_r:bluetooth_prop:s0
|
|||
persist.debug. u:object_r:persist_debug_prop:s0
|
||||
persist.logd. u:object_r:logd_prop:s0
|
||||
persist.logd.security u:object_r:device_logging_prop:s0
|
||||
persist.logd.logpersistd u:object_r:logpersistd_logging_prop:s0
|
||||
persist.log.tag u:object_r:logd_prop:s0
|
||||
persist.mmc. u:object_r:mmc_prop:s0
|
||||
persist.sys. u:object_r:system_prop:s0
|
||||
|
|
1
shell.te
1
shell.te
|
@ -63,6 +63,7 @@ set_prop(shell, ctl_dumpstate_prop)
|
|||
set_prop(shell, dumpstate_prop)
|
||||
set_prop(shell, debug_prop)
|
||||
set_prop(shell, powerctl_prop)
|
||||
userdebug_or_eng(`set_prop(shell, logpersistd_logging_prop)')
|
||||
|
||||
# systrace support - allow atrace to run
|
||||
allow shell debugfs_tracing:dir r_dir_perms;
|
||||
|
|
|
@ -29,6 +29,7 @@ set_prop(system_app, system_prop)
|
|||
set_prop(system_app, logd_prop)
|
||||
set_prop(system_app, net_radio_prop)
|
||||
set_prop(system_app, system_radio_prop)
|
||||
userdebug_or_eng(`set_prop(system_app, logpersistd_logging_prop)')
|
||||
auditallow system_app net_radio_prop:property_service set;
|
||||
auditallow system_app system_radio_prop:property_service set;
|
||||
|
||||
|
|
Loading…
Reference in a new issue