Make sanitize_environ work properly

This commit is contained in:
topjohnwu
2021-09-18 05:11:10 -07:00
parent db590091b3
commit 63cfe7b47b
2 changed files with 22 additions and 19 deletions

View File

@@ -165,6 +165,9 @@ void sepolicy::magisk_rules() {
// For changing file context
allow("rootfs", "tmpfs", "filesystem", "associate");
// Allow Zygisk to prctl PR_SET_MM
allow("zygote", "zygote", "capability", "sys_resource");
// Allow update_engine/addon.d-v2 to run permissive on all ROMs
permissive("update_engine");