diff --git a/native/src/sepolicy/rules.rs b/native/src/sepolicy/rules.rs index 4f433bab3..f1ef4789b 100644 --- a/native/src/sepolicy/rules.rs +++ b/native/src/sepolicy/rules.rs @@ -96,10 +96,11 @@ impl SePolicy { allow(["domain"], [proc], ["process"], ["sigchld"]); allow(["domain"], [proc], ["fd"], ["use"]); allow(["domain"], [proc], ["fifo_file"], ["write", "read", "open", "getattr"]); + allow(["domain"], [proc], ["memfd_file"], ["getattr", "read", "write", "map", "execute"]); // Allow these processes to access MagiskSU and output logs - allow(["zygote", "shell", "platform_app", - "system_app", "priv_app", "untrusted_app", "untrusted_app_all"], + allow(["zygote", "shell", "platform_app", "platform_app_all", "system_app", + "priv_app", "priv_app_all", "untrusted_app", "untrusted_app_all"], [proc], ["unix_stream_socket"], ["connectto", "getopt"]); // Let selected domains access tmpfs files @@ -127,7 +128,6 @@ impl SePolicy { // Zygisk rules allow(["zygote"], ["zygote"], ["process"], ["execmem"]); - allow(["domain"], [proc], ["memfd_file"], ["getattr", "read", "write", "map", "execute"]); allow(["zygote"], ["fs_type"], ["filesystem"], ["unmount"]); allow(["system_server"], ["system_server"], ["process"], ["execmem"]);