blob: 414b39f48918f7c0fc4b51e1801a908ff6c286f4 [file] [log] [blame]
Kiyoung Kimaffa6f32019-07-08 19:02:05 +09001type linkerconfig, domain, coredomain;
2type linkerconfig_exec, exec_type, file_type, system_file_type;
3
4init_daemon_domain(linkerconfig)
5
6## Read and write linkerconfig subdirectory.
Kiyoung Kimb55d4442020-01-20 13:40:08 +09007allow linkerconfig linkerconfig_file:dir create_dir_perms;
Kiyoung Kimaffa6f32019-07-08 19:02:05 +09008allow linkerconfig linkerconfig_file:file create_file_perms;
9
Kiyoung Kim2d5f2e22019-07-23 13:41:19 +090010# Allow linkerconfig to log to the kernel.
11allow linkerconfig kmsg_device:chr_file w_file_perms;
12
Kiyoung Kim6f733962019-12-18 13:30:28 +090013# Allow linkerconfig to be invoked with logwrapper from init.
14allow linkerconfig devpts:chr_file { read write };
15
Kiyoung Kimb55d4442020-01-20 13:40:08 +090016# Allow linkerconfig to scan for apex modules
17allow linkerconfig apex_mnt_dir:dir r_dir_perms;
18
Kiyoung Kimaffa6f32019-07-08 19:02:05 +090019neverallow { domain -init -linkerconfig } linkerconfig_exec:file no_x_file_perms;