Skip to content

Commit 64f1970

Browse files
committed
selinux: remove the hack that always disabling SELinux
1 parent 205a1e0 commit 64f1970

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

security/selinux/selinuxfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,
163163
if (sscanf(page, "%d", &new_value) != 1)
164164
goto out;
165165

166-
new_value = 0;
167-
168166
if (new_value != selinux_enforcing) {
169167
length = task_has_security(current, SECURITY__SETENFORCE);
170168
if (length)

0 commit comments

Comments
 (0)