blob: f82e05deba754cfbe3bd81690650e7775ea2ba51 [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.
7allow linkerconfig linkerconfig_file:dir rw_dir_perms;
8allow 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 Kimaffa6f32019-07-08 19:02:05 +090016neverallow { domain -init -linkerconfig } linkerconfig_exec:file no_x_file_perms;