setenforce

Switch SELinux between enforcing and permissive

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
ausearch -m avc -ts recent | audit2whyDiagnose the denial
semanage fcontext -a -t <type> "<path>(/.*)?" && restorecon -Rv <path>Fix the label
What it does

Changes the runtime SELinux mode; does not survive reboot.

Examples
setenforce 0Permissive (temporary) · explain & risk-check →
setenforce 1Back to enforcing · explain & risk-check →
Related
selinux ausearch
Open the full explainer →More in Users, Permissions & Security

Reference text is hand-written and may be incomplete — check man setenforce for your version. Test destructive commands on a non-production system first.