From 70d233cae2f0aeef75275f4d30bccb1b368d1ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E9=9B=AA=E7=8F=8A?= Date: Tue, 10 Nov 2026 21:58:16 +0800 Subject: [PATCH] =?UTF-8?q?sepolicy:=20support=20domain=20updates=20in=20A?= =?UTF-8?q?ndroid=2017-=20#10226=E2=81=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- native/src/sepolicy/rules.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"]);