kernel: make allowlist available cross boot

This commit is contained in:
weishu
2022-12-12 11:17:51 +07:00
parent 730a522f87
commit 820d84e512
3 changed files with 66 additions and 23 deletions

View File

@@ -83,4 +83,10 @@ void setup_selinux() {
is_domain_permissive = true;
}
}
}
void setenforce(bool enforce) {
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
selinux_state.enforcing = enforce;
#endif
}

View File

@@ -1,8 +1,8 @@
#ifndef __KSU_H_SELINUX
#define __KSU_H_SELINUX
void setup_selinux();
void setenforce(bool);
#endif