Skip to content

Commit da43ac8

Browse files
committed
Allow all domains to access tmpfs files
Fix #8457
1 parent 830fc75 commit da43ac8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

native/src/sepolicy/rules.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ impl SepolicyMagisk for sepolicy {
101101
"system_app", "priv_app", "untrusted_app", "untrusted_app_all"],
102102
[proc], ["unix_stream_socket"], ["connectto", "getopt"]);
103103

104-
// Let selected domains access tmpfs files
105-
// For tmpfs overlay on 2SI, Zygisk on lower Android versions and AVD scripts
106-
allow(["init", "zygote", "shell"], ["tmpfs"], ["file"], all);
104+
// For tmpfs overlay on 2SI. We allow all domains to access tmpfs files.
105+
allow(["domain"], ["tmpfs"], ["file"], all);
107106

108107
// Allow magiskinit daemon to handle mock selinuxfs
109108
allow(["kernel"], ["tmpfs"], ["fifo_file"], ["write"]);

0 commit comments

Comments
 (0)