mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 11:26:58 +00:00
Start Magisk in SAR
This commit is contained in:
@@ -48,6 +48,9 @@ void sepol_magisk_rules() {
|
||||
sepol_attradd(SEPOL_PROC_DOMAIN, "bluetoothdomain");
|
||||
sepol_attradd(SEPOL_FILE_DOMAIN, "mlstrustedobject");
|
||||
|
||||
// Let everyone access tmpfs files (for SAR sbin overlay)
|
||||
sepol_allow(ALL, "tmpfs", "file", ALL);
|
||||
|
||||
// Let init transit to SEPOL_PROC_DOMAIN
|
||||
sepol_allow("kernel", "kernel", "process", "setcurrent");
|
||||
sepol_allow("kernel", SEPOL_PROC_DOMAIN, "process", "dyntransition");
|
||||
|
Reference in New Issue
Block a user