Load *_compat_cil_file from system_ext

https://android-review.googlesource.com/c/platform/system/core/+/1650271
This commit is contained in:
vvb2060 2021-10-06 17:02:00 +08:00 committed by John Wu
parent b2f152e641
commit 6a086bb222

View File

@ -144,6 +144,10 @@ sepolicy *sepolicy::compile_split() {
if (access(path, R_OK) == 0)
load_cil(db, path);
sprintf(path, SYSEXT_POLICY_DIR "mapping/%s.compat.cil", plat_ver);
if (access(path, R_OK) == 0)
load_cil(db, path);
cil_file = SYSEXT_POLICY_DIR "system_ext_sepolicy.cil";
if (access(cil_file, R_OK) == 0)
load_cil(db, cil_file);