platform_system_sepolicy/private/linkerconfig.te
Jooyung Han 86f2284fcd Allow linkerconfig to read apex-info-file.xml
Linkerconfig reads apex-info-list.xml to distinguish vendor apexes.

Bug: 159576928
Test: build & device boots
Change-Id: I1b791f9c03bbdfa5258eea5e7cb0896168beb114
2020-07-30 01:11:15 +09:00

22 lines
796 B
Text

type linkerconfig, domain, coredomain;
type linkerconfig_exec, exec_type, file_type, system_file_type;
init_daemon_domain(linkerconfig)
## Read and write linkerconfig subdirectory.
allow linkerconfig linkerconfig_file:dir create_dir_perms;
allow linkerconfig linkerconfig_file:file create_file_perms;
# Allow linkerconfig to log to the kernel.
allow linkerconfig kmsg_device:chr_file w_file_perms;
# Allow linkerconfig to be invoked with logwrapper from init.
allow linkerconfig devpts:chr_file { read write };
# Allow linkerconfig to scan for apex modules
allow linkerconfig apex_mnt_dir:dir r_dir_perms;
# Allow linkerconfig to read apex-info-list.xml
allow linkerconfig apex_info_file:file r_file_perms;
neverallow { domain -init -linkerconfig } linkerconfig_exec:file no_x_file_perms;