I am on Fedora 29 and SELinux is currently disabled. I am trying to put into permissive mode using setenforce permissive, but always get setenforce: SELinux is disabled this output and then status still remains disabled. I looked and found out that it is not possible to do without reboot. I am not looking to change SELinux system wide, changing it on runtime should be OK. I am running the commands as root. Any ideas to make it work without reboot?
# sestatus
SELinux status: disabled
# setenforce Permissive
setenforce: SELinux is disabled
# sestatus
SELinux status: disabled
setenforce 0) means disabled. Enforcing (setenforce 1) means enabled. – Christopher Oct 10 '19 at 12:19/etc/sysconfig/selinuxsetSELINUX=permissiveand make sure you don't have any kernel parameters (in grub.cfg) to disable selinux as well, permissive mode will load selinux but won't block any thing, but will allow you to change the state on the fly when needed. – Rabin Oct 10 '19 at 12:41sestatussays “disabled”, then SELinux is fully disabled.setenforcetoggles between the two enabled states, “permissive” and “enforcing”. – Stephen Kitt Oct 10 '19 at 13:30