The /etc/selinux/config stores the status of SELinux.
1 |
kur:~ kur$ vi /etc/selinux/config |
To get the status of SELinux use getenforce.
1 |
kur:~ kur$ getenforce |
To change the status of SELinux use setenforce
1 2 3 |
kur:~ kur$ setenforce usage: setenforce [ Enforcing | Permissive | 1 | 0 ] |
1 |
kur:~ kur$ setenforce Permissive |
1 2 3 |
kur:~ kur$ getenforce Permissive |
Checking the logs of denied programs:
1 |
kur:~ kur$ selatet -b |
Checking the status of current policy:
1 |
kur:~ kur$ seinfo |
Managing selinux graphically:
1 |
kur:~ kur$ system-config-selinux |
Note: Changing Run Level AT startup in Red Hat Linux