Adam Shih | 8146116 | 2022-10-20 11:23:26 +0800 | [diff] [blame] | 1 | type aocdump, domain; |
| 2 | type aocdump_exec, vendor_file_type, exec_type, file_type; |
| 3 | init_daemon_domain(aocdump) |
| 4 | |
| 5 | userdebug_or_eng(` |
| 6 | # Permit communication with AoC |
| 7 | allow aocdump aoc_device:chr_file rw_file_perms; |
| 8 | |
| 9 | allow aocdump radio_vendor_data_file:dir rw_dir_perms; |
| 10 | allow aocdump radio_vendor_data_file:file create_file_perms; |
| 11 | allow aocdump wifi_logging_data_file:dir create_dir_perms; |
| 12 | allow aocdump wifi_logging_data_file:file create_file_perms; |
| 13 | set_prop(aocdump, vendor_audio_prop); |
| 14 | r_dir_file(aocdump, proc_asound) |
| 15 | |
| 16 | allow aocdump self:unix_stream_socket create_stream_socket_perms; |
| 17 | allow aocdump audio_vendor_data_file:sock_file { create unlink }; |
| 18 | ') |