sepolicy: support domain updates in Android 17- #10226⁠

This commit is contained in:
南宫雪珊
2026-11-10 21:58:16 +08:00
committed by GitHub
parent 33bfff7ce7
commit 70d233cae2
+3 -3
View File
@@ -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"]);