1type 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.
7allow linkerconfig linkerconfig_file:dir create_dir_perms;
8allow linkerconfig linkerconfig_file:file create_file_perms;
9
10# Allow linkerconfig to log to the kernel.
11allow linkerconfig kmsg_device:chr_file w_file_perms;
12
13# Allow linkerconfig to be invoked with logwrapper from init.
14allow linkerconfig devpts:chr_file { read write };
15
16# Allow linkerconfig to scan for apex modules
17allow linkerconfig apex_mnt_dir:dir r_dir_perms;
18
19neverallow { domain -init -linkerconfig } linkerconfig_exec:file no_x_file_perms;
20