LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sestatus

Report SELinux status and configuration

TLDR

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

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

CAVEATS

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

SEE ALSO

Copied to clipboard
Kai