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.
|
2023-04-10 03:55:40 +02:00
|
|
|
allow linkerconfig devpts:chr_file { getattr ioctl read write };
|
2019-12-18 05:30:28 +01:00
|
|
|
|
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;
|
|
|
|
|
2023-05-31 10:51:14 +02:00
|
|
|
# Allow linkerconfig to read apex_manifest.pb file from vendor apex
|
|
|
|
r_dir_file(linkerconfig, vendor_apex_metadata_file)
|
|
|
|
|
2021-03-11 20:26:08 +01:00
|
|
|
# Allow linkerconfig to be called in the otapreopt_chroot
|
|
|
|
allow linkerconfig otapreopt_chroot:fd use;
|
|
|
|
allow linkerconfig postinstall_apex_mnt_dir:dir r_dir_perms;
|
|
|
|
allow linkerconfig postinstall_apex_mnt_dir: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;
|