diff --git a/native/jni/magiskpolicy/rules.cpp b/native/jni/magiskpolicy/rules.cpp index e53867e68..e4cbf2ccd 100644 --- a/native/jni/magiskpolicy/rules.cpp +++ b/native/jni/magiskpolicy/rules.cpp @@ -51,6 +51,9 @@ void sepol_magisk_rules() { // Let everyone access tmpfs files (for SAR sbin overlay) sepol_allow(ALL, "tmpfs", "file", ALL); + // For normal rootfs file/directory operations when rw (for SAR / overlay) + sepol_allow("rootfs", "labeledfs", "filesystem", "associate"); + // Let init transit to SEPOL_PROC_DOMAIN sepol_allow("kernel", "kernel", "process", "setcurrent"); sepol_allow("kernel", SEPOL_PROC_DOMAIN, "process", "dyntransition");