d22987b4da
Motivation: Domain is overly permissive. Start removing permissions from domain and assign them to the domain_deprecated attribute. Domain_deprecated and domain can initially be assigned to all domains. The goal is to not assign domain_deprecated to new domains and to start removing domain_deprecated where it is not required or reassigning the appropriate permissions to the inheriting domain when necessary. Bug: 25433265 Change-Id: I8b11cb137df7bdd382629c98d916a73fe276413c
24 lines
693 B
Text
24 lines
693 B
Text
# Domain for atrace process spawned by boottrace service.
|
|
type atrace_exec, exec_type, file_type;
|
|
|
|
userdebug_or_eng(`
|
|
|
|
type atrace, domain, domain_deprecated;
|
|
init_daemon_domain(atrace)
|
|
|
|
# boottrace services uses /data/misc/boottrace/categories
|
|
allow atrace boottrace_data_file:dir search;
|
|
allow atrace boottrace_data_file:file r_file_perms;
|
|
|
|
# atrace reads the files in /sys/kernel/debug/tracing/
|
|
allow atrace debugfs:file r_file_perms;
|
|
|
|
# atrace sets debug.atrace.* properties
|
|
set_prop(atrace, debug_prop)
|
|
|
|
# atrace pokes all the binder-enabled processes at startup.
|
|
binder_use(atrace)
|
|
allow atrace healthd:binder call;
|
|
allow atrace surfaceflinger:binder call;
|
|
|
|
')
|