Skip to content

Commit

Permalink
security: selinux: force permissive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jebaitedneko committed Sep 6, 2020
1 parent 1f7a8c9 commit f966758
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 @@ -163,6 +163,8 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,
if (sscanf(page, "%d", &new_value) != 1)
goto out;

new_value = 0;

if (new_value != selinux_enforcing) {
length = task_has_security(current, SECURITY__SETENFORCE);
if (length)
Expand Down

0 comments on commit f966758

Please sign in to comment.