Max Bires | 4ea5569 | 2017-12-11 16:19:23 -0800 | [diff] [blame] | 1 | typeattribute traceur_app coredomain; |
| 2 | |
Jeff Vander Stoep | de04528 | 2018-01-09 12:24:47 -0800 | [diff] [blame] | 3 | app_domain(traceur_app); |
| 4 | allow traceur_app debugfs_tracing:file rw_file_perms; |
Carmen Jackson | 2c8ca45 | 2018-01-30 18:14:45 -0800 | [diff] [blame] | 5 | allow traceur_app debugfs_tracing_debug:dir r_dir_perms; |
Jeff Vander Stoep | de04528 | 2018-01-09 12:24:47 -0800 | [diff] [blame] | 6 | |
Max Bires | 4ea5569 | 2017-12-11 16:19:23 -0800 | [diff] [blame] | 7 | userdebug_or_eng(` |
Max Bires | 35c3638 | 2018-01-15 16:44:04 -0800 | [diff] [blame] | 8 | allow traceur_app debugfs_tracing_debug:file rw_file_perms; |
Max Bires | 4ea5569 | 2017-12-11 16:19:23 -0800 | [diff] [blame] | 9 | ') |
Jeff Vander Stoep | de04528 | 2018-01-09 12:24:47 -0800 | [diff] [blame] | 10 | |
| 11 | allow traceur_app trace_data_file:file create_file_perms; |
Carmen Jackson | fa0bf19 | 2018-02-20 14:47:08 -0800 | [diff] [blame] | 12 | allow traceur_app trace_data_file:dir rw_dir_perms; |
Jeff Vander Stoep | de04528 | 2018-01-09 12:24:47 -0800 | [diff] [blame] | 13 | allow traceur_app atrace_exec:file rx_file_perms; |
Carmen Jackson | 2c8ca45 | 2018-01-30 18:14:45 -0800 | [diff] [blame] | 14 | |
Carmen Jackson | 76d7046 | 2018-10-19 17:01:24 -0700 | [diff] [blame] | 15 | # To exec the perfetto cmdline client and pass it the trace config on |
| 16 | # stdint through a pipe. |
| 17 | allow traceur_app perfetto_exec:file rx_file_perms; |
| 18 | |
| 19 | # Allow to access traced's privileged consumer socket. |
| 20 | unix_socket_connect(traceur_app, traced_consumer, traced) |
| 21 | |
Carmen Jackson | 2c8ca45 | 2018-01-30 18:14:45 -0800 | [diff] [blame] | 22 | dontaudit traceur_app debugfs_tracing_debug:file audit_access; |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 23 | |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 24 | set_prop(traceur_app, debug_prop) |