Skip to content
ohsudo, Home

Tags

#rhel

avc: denied
Linux

SELinux "avc: denied": read the denial, then fix the label, the boolean or the port

Fix SELinux "avc: denied" on RHEL, Rocky and AlmaLinux: read the AVC line, then fix file labels with restorecon and semanage, booleans with setsebool, or ports.

Intermediate · 4 min read

No route to host
Networking

"No route to host": usually a firewall saying no, sometimes a machine that isn't there

Fix "No route to host" from ssh, curl or nc: check the firewall on the other machine (firewalld rejects by default), then whether the host is up.

Beginner · 4 min read