Full selinux status:

[root@localhost ~]# sestatus
SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: permissive Policy version: 24 Policy from config file: targeted

To Disable selinux:

[root@localhost ~]# setenforce 0

To Enable selinux:

[root@localhost ~]# setenforce 1

To quickly see if selinux is running

[root@localhost ~]# getenforce

The selinux configuration file is located at /etc/sysconfig/selinux

Leave a Reply