sestatus

Report SELinux status and configuration

TLDR

Print current SELinux status
$ sestatus
Print states of all policy booleans
$ sestatus -b
Print file and process contexts
$ sestatus -v

SYNOPSIS

sestatus [-v] [-b]

DESCRIPTION

sestatus reports the current status of the SELinux system. It shows whether SELinux is enabled, its current mode (enforcing, permissive, or disabled), the loaded policy type, and various security settings.Typical output includes SELinux status, loaded policy, current mode, policy version, and whether policies are being denied.

PARAMETERS

-b

Display current states of all policy booleans
-v
Display security contexts of files and processes from /etc/sestatus.conf

OUTPUT FIELDS

SELinux status: enabled/disabledSELinuxfs mount: path to SELinux filesystemSELinux root directory: SELinux configuration locationLoaded policy name: targeted, mls, etc.Current mode: enforcing, permissive, disabledMode from config file: configured default modePolicy MLS status: MLS/MCS statusPolicy deny_unknown status: how unknown access is handledMemory protection checking: protection mode

INSTALL

sudo apt install policycoreutils
sudo dnf install policycoreutils
sudo zypper install policycoreutils
nix profile install nixpkgs#policycoreutils

CAVEATS

Only works on systems with SELinux installed. Requires read access to SELinux filesystem and configuration files.

SEE ALSO

getenforce(8), setenforce(8), semanage(8)