setenforce(8) SELinux Command Line documentation setenforce(8)

# [NAME](#NAME)

setenforce - modify the mode SELinux is running in

# [SYNOPSIS](#SYNOPSIS)

**setenforce** \[**Enforcing**|**Permissive**|**1**|**0**]

# [DESCRIPTION](#DESCRIPTION)

Use **Enforcing** or **1** to put SELinux in enforcing mode.  
Use **Permissive** or **0** to put SELinux in permissive mode.

If SELinux is disabled and you want to enable it, or SELinux is enabled and you want to disable it, please see [**selinux**(8)](/man/os/libselinux/selinux.8).

# [AUTHOR](#AUTHOR)

Dan Walsh, &lt;dwalsh@redhat.com&gt;

# [SEE ALSO](#SEE_ALSO)

[**selinux**(8)](/man/os/libselinux/selinux.8), [**getenforce**(8)](/man/os/libselinux/getenforce.8), [**selinuxenabled**(8)](/man/os/libselinux/selinuxenabled.8)

7 April 2004 dwalsh@redhat.com

---

Document: setenforce(8) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
