kernel: selinux: dontaudit * su dir getattr
* Likely a detection point for newer android. * I am not sure about this, but a module try to address this: https://github.com/aviraxp/ZN-AuditPatch * Need more testing. Suggested-by: fatalcoder524 <11532648+fatalcoder524@users.noreply.github.com> Tested-by: rsuntk <rsuntk@yukiprjkt.my.id> Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
@@ -46,7 +46,7 @@ void apply_kernelsu_rules()
|
||||
}
|
||||
|
||||
mutex_lock(&ksu_rules);
|
||||
|
||||
|
||||
db = get_policydb();
|
||||
|
||||
ksu_permissive(db, KERNEL_SU_DOMAIN);
|
||||
@@ -139,6 +139,8 @@ void apply_kernelsu_rules()
|
||||
ksu_allow(db, "system_server", KERNEL_SU_DOMAIN, "process", "getpgid");
|
||||
ksu_allow(db, "system_server", KERNEL_SU_DOMAIN, "process", "sigkill");
|
||||
|
||||
// https://android-review.googlesource.com/c/platform/system/logging/+/3725346
|
||||
ksu_dontaudit(db, ALL, KERNEL_SU_DOMAIN, "dir", "getattr");
|
||||
mutex_unlock(&ksu_rules);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user