getenforce(8)

get the current mode of SELinux

Section 8 selinux-utils bookworm source

Description

getenforce

NAME

getenforce - get the current mode of SELinux

SYNOPSIS

getenforce

DESCRIPTION

getenforce reports whether SELinux is enforcing, permissive, or disabled.

AUTHOR

Dan Walsh, <dwalsh@redhat.com>

SEE ALSO

selinux(8), setenforce(8), selinuxenabled(8)