mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
20 lines
463 B
Plaintext
20 lines
463 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# setenforce
|
|
|
|
> Toggle SELinux between enforcing and permissive modes.
|
|
> To enable or disable SELinux, edit `/etc/selinux/config` instead.
|
|
> See also: `getenforce`, `semanage-permissive`.
|
|
> More information: <https://manned.org/setenforce>.
|
|
|
|
- Put SELinux in enforcing mode:
|
|
|
|
`setenforce {{1|Enforcing}}`
|
|
|
|
- Put SELinux in permissive mode:
|
|
|
|
`setenforce {{0|Permissive}}`
|