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

# selinuxenabled(8)

tool to be used within shell scripts to determine if selinux is enabled

## NAME

selinuxenabled - tool to be used within shell scripts to determine if selinux is enabled

## SYNOPSIS

**selinuxenabled**

## DESCRIPTION

Indicates whether SELinux is enabled or disabled.

## EXIT STATUS

It exits with status 0 if SELinux is enabled and 1 if it is not enabled.

## AUTHOR

Dan Walsh, \<dwalsh@redhat.com\>

## SEE ALSO

[**selinux**(8)](/selinux/8.md), [**setenforce**(8)](/setenforce/8.md), [**getenforce**(8)](/getenforce/8.md)
