<tutorialjinni.com/>

Disable SELinux on CentOS 9

Posted Under: CentOS, Configuration, Linux on Dec 1, 2022
Disable SELinux on CentOS 9
Security-Enhanced Linux or Simply SELinux is a Linux kernel security module that provides a mechanism for supporting access control security policies, including mandatory access controls. In older version of RedHat and CentOS simply setting SELINUX=disabled in /etc/selinux/config file gets the job done. However, in CentOS and RedHat version 9, it takes more than that.

To disable SELinux permanently,i.e. across reboots issue following command and restart to take effect.
grubby --update-kernel ALL --args selinux=0
init 6 # restart




To enable SELinux
grubby --update-kernel ALL --remove-args selinux
init 6 # restart


imgae