Why does SELinux prevents a file from read/write access for a running container ?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content