diff options
| author | DespairFactor <matthewalex@outlook.com> | 2015-05-31 11:49:42 -0400 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-07 13:46:47 +0100 |
| commit | c0778dd1c9655b2cc99ee5038834e6b2c56a1173 (patch) | |
| tree | 3c979a6c30550efabb15cfebe7117105e8810b86 /security | |
| parent | 1d1e2828f6f8be21f74add5d2d8fa9592d159960 (diff) | |
security/selinux: force permissive
Signed-off-by: flar2 <asegaert@gmail.com>
Diffstat (limited to 'security')
| -rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index a96bed4db..d87933b16 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -166,6 +166,8 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf, length = -EINVAL; if (sscanf(page, "%d", &new_value) != 1) goto out; + + new_value = 0; if (new_value != selinux_enforcing) { length = task_has_security(current, SECURITY__SETENFORCE); |
