mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 15:28:28 +00:00
Load *_compat_cil_file from system_ext
https://android-review.googlesource.com/c/platform/system/core/+/1650271
This commit is contained in:
parent
b2f152e641
commit
6a086bb222
@ -144,6 +144,10 @@ sepolicy *sepolicy::compile_split() {
|
|||||||
if (access(path, R_OK) == 0)
|
if (access(path, R_OK) == 0)
|
||||||
load_cil(db, path);
|
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";
|
cil_file = SYSEXT_POLICY_DIR "system_ext_sepolicy.cil";
|
||||||
if (access(cil_file, R_OK) == 0)
|
if (access(cil_file, R_OK) == 0)
|
||||||
load_cil(db, cil_file);
|
load_cil(db, cil_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user