Inseob Kim | ff43be2 | 2021-06-07 16:56:56 +0900 | [diff] [blame] | 1 | type linkerconfig, domain, coredomain; |
| 2 | type linkerconfig_exec, exec_type, file_type, system_file_type; |
| 3 | |
| 4 | init_daemon_domain(linkerconfig) |
| 5 | |
| 6 | ## Read and write linkerconfig subdirectory. |
| 7 | allow linkerconfig linkerconfig_file:dir create_dir_perms; |
| 8 | allow linkerconfig linkerconfig_file:file create_file_perms; |
| 9 | |
| 10 | # Allow linkerconfig to log to the kernel. |
| 11 | allow linkerconfig kmsg_device:chr_file w_file_perms; |
| 12 | |
| 13 | # Allow linkerconfig to be invoked with logwrapper from init. |
| 14 | allow linkerconfig devpts:chr_file { read write }; |
| 15 | |
| 16 | # Allow linkerconfig to scan for apex modules |
| 17 | allow linkerconfig apex_mnt_dir:dir r_dir_perms; |
| 18 | |
| 19 | # Allow linkerconfig to read apex-info-list.xml |
| 20 | allow linkerconfig apex_info_file:file r_file_perms; |
| 21 | |