mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 18:45:28 +00:00
Add pre-init rules
This commit is contained in:
parent
3c6a170138
commit
9e96824161
8
rules.c
8
rules.c
@ -163,6 +163,14 @@ void sepol_min_rules() {
|
||||
sepol_attradd("su", "mlstrustedsubject");
|
||||
sepol_attradd("su_device", "mlstrustedobject");
|
||||
|
||||
// Let pre-init do stuffs
|
||||
sepol_allow("kernel", "kernel", "security", "load_policy");
|
||||
sepol_allow("kernel", "device", "dir", "write");
|
||||
sepol_allow("kernel", "device", "dir", "add_name");
|
||||
sepol_allow("kernel", "device", "file", "create");
|
||||
sepol_allow("kernel", "device", "file", "open");
|
||||
sepol_allow("kernel", "device", "file", "read");
|
||||
|
||||
// Let init run stuffs in su context
|
||||
sepol_allow("kernel", "su", "fd", "use");
|
||||
sepol_allow("init", "su", "process", ALL);
|
||||
|
Loading…
Reference in New Issue
Block a user