---
name: "getenforce"
section: "8"
platform: "linux"
package: "selinux-utils"
version: "3.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://carta.tech/man/getenforce/8"
---

# getenforce(8)

get the current mode of SELinux

## 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)](/man/selinux/8.md), [**setenforce**(8)](/man/setenforce/8.md), [**selinuxenabled**(8)](/man/selinuxenabled/8.md)
