Skip to content

Commit

Permalink
[DNM] kernel-4.19: security: selinux: force permissive
Browse files Browse the repository at this point in the history
* [@techyminati] Due to retarded oplus_security changes this kernel forces enforcing, we're still debugging our device trees and are in permissive mode,
  hence force permissive from kernel side from now, I know this is an dirty hack and should not be used, however we'll try to look for better fixes in future,
  but for now lets use this.
  • Loading branch information
Jebaitedneko authored and techyminati committed May 31, 2023
1 parent d250a13 commit 2ec096e
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 @@ -156,6 +156,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;

new_value = !!new_value;

Expand Down

0 comments on commit 2ec096e

Please sign in to comment.