Why does SELinux prevents a file from read/write access for a running container ?
Issue
SELinux generates an error when mounting the local volume to a running container as below :
- SELinux prevents /usr/local/bin/postgres from write access on the file file_name
- SELinux prevents /usr/bin/postgres from remove_name access on the file file_name
- SELinux prevents /usr/bin/postgres from remove_name access on the directory 0000
Environment
- RHEL 8
- Podman
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.