LinuxCommandLibrary

setenforce

Toggle SELinux between enforcing and permissive modes.

TLDR

Put SELinux in enforcing mode

$ setenforce [1|Enforcing]
copy


Put SELiunx in permissive mode
$ setenforce [0|Permissive]
copy

Copied to clipboard