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
└─$ 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