Switch SELinux between enforcing and permissive
high risk
ausearch -m avc -ts recent | audit2whyDiagnose the denialsemanage fcontext -a -t <type> "<path>(/.*)?" && restorecon -Rv <path>Fix the labelChanges the runtime SELinux mode; does not survive reboot.
setenforce 0Permissive (temporary) · explain & risk-check →setenforce 1Back to enforcing · explain & risk-check →Reference text is hand-written and may be incomplete — check man setenforce for your version. Test destructive commands on a non-production system first.