setenforce - Man Page
modify the mode SELinux is running in
Examples (TL;DR)
- Put SELinux in enforcing mode:
setenforce 1|Enforcing
- Put SELiunx in permissive mode:
setenforce 0|Permissive
Synopsis
setenforce [Enforcing|Permissive|1|0]
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).
Author
Dan Walsh, <dwalsh@redhat.com>
See Also
Referenced By
getenforce(8), security_load_policy(3), selinuxenabled(8).
7 April 2004 dwalsh@redhat.com SELinux Command Line documentation