Introduction
Sometimes you met a problem, you tried to debug, but found nothing was wrong. Then what went wrong? The failures may be caused by SELinux.
Failure Types
Permission Denied
Service fails to start, the log only says “Permission denied”.
One common situation is a container startup failure.
Network Connection Denied
Unable to establish a connection.
Solution
Check SELinux Status
| |
Enforcing means SELinux is working.Permissive means it only records.
Disable SELinux Temporarily
| |
Disable SELinux Permenantly
OS: Silverblue
| |
or
| |
then add enforcing=0.