5f25239c2c
mmi-based products insists on running persistent logcat directly. Test: build Bug: 30566487 Change-Id: I6397f5faedb2a4a5e2f4cfc5387977ae9c54b2d4
20 lines
627 B
Text
20 lines
627 B
Text
# android debug logging, logpersist domains
|
|
type logpersist, domain;
|
|
|
|
###
|
|
### 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 { app_data_file system_data_file }:dir_file_class_set write;
|
|
|
|
# Only init is allowed to enter the logpersist domain via exec()
|
|
#neverallow { domain -init } logpersist:process transition;
|
|
#neverallow * logpersist:process dyntransition;
|