Skip to content

Commit

Permalink
selinux: enforce by default when not permissive
Browse files Browse the repository at this point in the history
* to avoid the kernel starting in permissive and breaking magisk
  • Loading branch information
ananjaser1211 committed Mar 20, 2020
1 parent 6bc451c commit 6972041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,

#ifdef CONFIG_ALWAYS_PERMISSIVE
new_value = 0;
#else
new_value = 1;
#endif

if (new_value != selinux_enforcing) {
Expand Down

0 comments on commit 6972041

Please sign in to comment.