diff --git a/logd.te b/logd.te index 97bbd8be3093b264d2cf5f24bec54d47fc0e39ed..bc97a37546ddfadef073b0f82b3427c159ef4413 100644 --- a/logd.te +++ b/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) diff --git a/property.te b/property.te index 64dbdef76ddbc167241776f15dfc634a71139af6..af7013f4c9526725dc68f2c798dc47ad2430e6ef 100644 --- a/property.te +++ b/property.te @@ -25,6 +25,7 @@ type audio_prop, property_type, core_property_type; type log_prop, property_type, log_property_type; type log_tag_prop, property_type, log_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; diff --git a/property_contexts b/property_contexts index 1ab1f10739aeaba0999e6168511f1b3f695b79f4..4368a989b938dc118afef1487b370ed4bf988f83 100644 --- a/property_contexts +++ b/property_contexts @@ -44,6 +44,8 @@ persist.audio. u:object_r:audio_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 +logd.logpersistd u:object_r:logpersistd_logging_prop:s0 persist.log.tag u:object_r:log_tag_prop:s0 persist.mmc. u:object_r:mmc_prop:s0 persist.sys. u:object_r:system_prop:s0 diff --git a/shell.te b/shell.te index 056eeb6ff6ba7be2babdbe6fe0b13deda0e41507..3e95b4687e017f228b2d8d3336f4527f648d51f5 100644 --- a/shell.te +++ b/shell.te @@ -70,6 +70,7 @@ set_prop(shell, powerctl_prop) set_prop(shell, log_tag_prop) set_prop(shell, wifi_log_prop) userdebug_or_eng(`set_prop(shell, log_prop)') +userdebug_or_eng(`set_prop(shell, logpersistd_logging_prop)') # systrace support - allow atrace to run allow shell debugfs_tracing:dir r_dir_perms; diff --git a/system_app.te b/system_app.te index 2d51c5a1017add7a5e726763fa498980396453ff..50320c5c7e2027f2f1365684307d265c52954270 100644 --- a/system_app.te +++ b/system_app.te @@ -32,6 +32,7 @@ set_prop(system_app, logd_prop) set_prop(system_app, net_radio_prop) set_prop(system_app, system_radio_prop) set_prop(system_app, log_tag_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;