SELinux cannot be permissive in the stock kernel of Honor 6X (Hi6250) and other kernels are unstable

Search This thread

tberma

Senior Member
Dec 29, 2015
111
11
Fez
www.facebook.com
Stock kernel does not support Selinux Permissive
└─$ adb shell
:/ $ su
:/ # setenforce 0
setenforce: Couldn't set enforcing status to '0': Invalid argument


There is no /etc/selinux/config
Tried to create the file /etc/selinux/config
└─$ adb shell
prague:/ # echo "SELINUX=permissive
> SELINUXTYPE=targeted" > /etc/selinux/config
/sbin/sh: can't create /etc/selinux/config: No such file or directory
1|prague:/ # mkdir /etc/selinux
prague:/ # echo "SELINUX=permissive^JSELINUXTYPE=targeted" > /etc/selinux/config
prague:/ # cat /etc/selinux/config
SELINUX=permissive
SELINUXTYPE=targeted
prague:/ # exit

Same error:
└─$ adb shell
:/ $ su
:/ # setenforce 0
setenforce: Couldn't set enforcing status to '0': Invalid argument