5131ff6544
This prebuilt is based on the AOSP policy, but slightly manipulated so that the set of types and attributes are identical with R policy. Following types are removed. boot_status_prop dalvik_config_prop gnss_device surfaceflinger_color_prop surfaceflinger_prop systemsound_config_prop vold_config_prop vold_status_prop Following type is renamed. wificond_service -> wifinl80211_service Bug: 153661471 Test: N/A Change-Id: I018d5e43f53c2bf721db1d13f5f4be42b9782b29
30 lines
1 KiB
Text
30 lines
1 KiB
Text
# android debug logging, logpersist domains
|
|
type logpersist, domain;
|
|
|
|
# logcatd is a shell script that execs logcat with various parameters.
|
|
allow logpersist shell_exec:file rx_file_perms;
|
|
allow logpersist logcat_exec:file rx_file_perms;
|
|
|
|
###
|
|
### Neverallow rules
|
|
###
|
|
### logpersist should NEVER do any of this
|
|
|
|
# Block device access.
|
|
neverallow logpersist dev_type:blk_file { read write };
|
|
|
|
# ptrace any other app
|
|
neverallow logpersist domain:process ptrace;
|
|
|
|
# Write to files in /data/data or system files on /data except misc_logd_file
|
|
neverallow logpersist { privapp_data_file app_data_file system_data_file }:dir_file_class_set write;
|
|
|
|
# Only init should be allowed to enter the logpersist domain via exec()
|
|
# Following is a list of debug domains we know that transition to logpersist
|
|
# neverallow_with_undefined_domains {
|
|
# domain
|
|
# -init # goldfish, logcatd, raft
|
|
# -mmi # bat, mtp8996, msmcobalt
|
|
# -system_app # Smith.apk
|
|
# } logpersist:process transition;
|
|
neverallow * logpersist:process dyntransition;
|