[CentOS] CentOS 7 selinux

Peter Eckel lists at eckel-edv.de
Wed May 10 13:30:08 UTC 2017


Hi Larry, 

> If I make a change to /etc/sysconfig/selinux do I have to restart anything
> for the change to take effect?

It depends. 

If you are changing the SELinux mode from 'enforcing' to 'permissive' and vice versa, you can make that change active in the running system by issuing the 'setenforce 1' or 'setenforce 0' command, respectively. 

If you want to go to or from 'disabled' or change the SELinux policy you'll need to reboot to activate the change. 

Regards, 

  Peter.


More information about the CentOS mailing list