Adam Shih | 8146116 | 2022-10-20 11:23:26 +0800 | [diff] [blame] | 1 | type aocd, domain; |
| 2 | type aocd_exec, vendor_file_type, exec_type, file_type; |
| 3 | init_daemon_domain(aocd) |
| 4 | |
| 5 | # access persist files |
| 6 | allow aocd mnt_vendor_file:dir search; |
| 7 | allow aocd persist_file:dir search; |
| 8 | r_dir_file(aocd, persist_aoc_file); |
| 9 | |
| 10 | # sysfs operations |
| 11 | allow aocd sysfs_aoc:dir search; |
| 12 | allow aocd sysfs_aoc_firmware:file w_file_perms; |
Alex Iacobucci | 9035c70 | 2023-11-09 17:56:06 +0000 | [diff] [blame] | 13 | allow aocd sysfs_aoc_notifytimeout:file r_file_perms; |
Adam Shih | 8146116 | 2022-10-20 11:23:26 +0800 | [diff] [blame] | 14 | |
| 15 | # dev operations |
| 16 | allow aocd aoc_device:chr_file rw_file_perms; |
| 17 | |
| 18 | # allow inotify to watch for additions/removals from /dev |
| 19 | allow aocd device:dir r_dir_perms; |
| 20 | |
| 21 | # set properties |
| 22 | set_prop(aocd, vendor_aoc_prop) |
Alex Iacobucci | 6461e33 | 2023-12-13 19:22:28 +0000 | [diff] [blame] | 23 | set_prop(aocd, vendor_timeout_aoc_prop) |
| 24 | get_prop(aocd, vendor_volte_mif_off) |