Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-27 00:14:40 +00:00
parent 0e4d52bcd0
commit 369eb89f11
8 changed files with 140 additions and 0 deletions

19
tldr/linux/setenforce Normal file
View File

@@ -0,0 +1,19 @@
---
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/man/setenforce>.
- Put SELinux in enforcing mode:
`setenforce {{1|Enforcing}}`
- Put SELiunx in permissive mode:
`setenforce {{0|Permissive}}`