kernel: add selinux rules for allowlist

This commit is contained in:
weishu
2022-12-23 08:15:35 +07:00
parent dcb1d38a37
commit fa59434753
2 changed files with 6 additions and 14 deletions

View File

@@ -20,6 +20,10 @@ void apply_kernelsu_rules() {
// allow all!
allow(db, KERNEL_SU_DOMAIN, ALL, ALL, ALL);
// we need to save allowlist in /data/adb
allow(db, "kernel", "adb_data_file", "dir", ALL);
allow(db, "kernel", "adb_data_file", "file", ALL);
// copied from Magisk rules
// suRights
allow(db, "servicemanager", KERNEL_SU_DOMAIN, "dir", "search");