2019-07-08 12:02:05 +02:00
|
|
|
type linkerconfig, domain, coredomain;
|
|
|
|
type linkerconfig_exec, exec_type, file_type, system_file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(linkerconfig)
|
|
|
|
|
|
|
|
## Read and write linkerconfig subdirectory.
|
2020-01-20 05:40:08 +01:00
|
|
|
allow linkerconfig linkerconfig_file:dir create_dir_perms;
|
2019-07-08 12:02:05 +02:00
|
|
|
allow linkerconfig linkerconfig_file:file create_file_perms;
|
|
|
|
|
2019-07-23 06:41:19 +02:00
|
|
|
# Allow linkerconfig to log to the kernel.
|
|
|
|
allow linkerconfig kmsg_device:chr_file w_file_perms;
|
|
|
|
|
2019-12-18 05:30:28 +01:00
|
|
|
# Allow linkerconfig to be invoked with logwrapper from init.
|
|
|
|
allow linkerconfig devpts:chr_file { read write };
|
|
|
|
|
2020-01-20 05:40:08 +01:00
|
|
|
# Allow linkerconfig to scan for apex modules
|
|
|
|
allow linkerconfig apex_mnt_dir:dir r_dir_perms;
|
|
|
|
|
2020-07-29 18:11:15 +02:00
|
|
|
# Allow linkerconfig to read apex-info-list.xml
|
|
|
|
allow linkerconfig apex_info_file:file r_file_perms;
|
|
|
|
|
2021-03-05 19:54:30 +01:00
|
|
|
neverallow { domain -init -linkerconfig -otapreopt_chroot } linkerconfig_exec:file no_x_file_perms;
|