1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages/linux/setenforce.md
2024-09-18 20:42:03 +02:00

371 B

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 SELiunx in permissive mode:

setenforce {{0|Permissive}}