Kiyoung Kim | affa6f3 | 2019-07-08 19:02:05 +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 rw_dir_perms; |
| 8 | allow linkerconfig linkerconfig_file:file create_file_perms; |
| 9 | |
Kiyoung Kim | 2d5f2e2 | 2019-07-23 13:41:19 +0900 | [diff] [blame^] | 10 | # Allow linkerconfig to log to the kernel. |
| 11 | allow linkerconfig kmsg_device:chr_file w_file_perms; |
| 12 | |
Kiyoung Kim | affa6f3 | 2019-07-08 19:02:05 +0900 | [diff] [blame] | 13 | neverallow { domain -init -linkerconfig } linkerconfig_exec:file no_x_file_perms; |