How to check SELinux Status

Use the command below to check the current status.

# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: permissive
Policy version: 21
Policy from config file: targeted

We can also change the policy using setenforce command.

setenforce 0 - to disable
setenforce 1 - to enable

# setenforce –help
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.