mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Fix wrong sepolicy rule
This commit is contained in:
parent
b11b81122a
commit
69181a6b72
@ -52,7 +52,8 @@ impl SepolicyMagisk for sepolicy {
|
|||||||
set_log_level_state(LogLevel::Warn, false);
|
set_log_level_state(LogLevel::Warn, false);
|
||||||
rules! {
|
rules! {
|
||||||
use self;
|
use self;
|
||||||
allow(all, ["kernel"], ["security"], ["load_policy"]);
|
// Prevent anything to change sepolicy except ourselves
|
||||||
|
deny(all, ["kernel"], ["security"], ["load_policy"]);
|
||||||
type_(proc, ["domain"]);
|
type_(proc, ["domain"]);
|
||||||
typeattribute([proc], ["mlstrustedsubject", "netdomain", "appdomain"]);
|
typeattribute([proc], ["mlstrustedsubject", "netdomain", "appdomain"]);
|
||||||
type_(file, ["file_type"]);
|
type_(file, ["file_type"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user