platform_system_sepolicy/vendor/hal_atrace_default.te
Wei Wang 9ed5cf6e43 Add atrace HAL 1.0 sepolicy
Bug: 111098596
Test: atrace/systrace
Change-Id: I06ca76750d640c98849c475c8a237d62c8e582b9
2018-09-25 21:02:10 -07:00

14 lines
509 B
Text

type hal_atrace_default, domain;
hal_server_domain(hal_atrace_default, hal_atrace)
type hal_atrace_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_atrace_default)
# Allow atrace HAL to access tracefs.
allow hal_atrace_default debugfs_tracing:dir r_dir_perms;
allow hal_atrace_default debugfs_tracing:file rw_file_perms;
userdebug_or_eng(`
allow hal_atrace_default debugfs_tracing_debug:dir r_dir_perms;
allow hal_atrace_default debugfs_tracing_debug:file rw_file_perms;
')