RHEL - New directories created in / during provisioning automatically apply incorrect etc_runtime_t SELinux context

Solution Verified - Updated -


  • By default, newly-created files and directories inherit the SELinux type of their parent directories.
  • However, when installing a RHEL 8.3 system with non-standard mount points such as /applications, the directory is created with etc_runtime_t SELinux context instead of default_t.

    # ls -Zd /applications
    drwxr-xr-x.   2 root root unconfined_u:object_r:etc_runtime_t:s0    6 Mar  1 12:24 applications
  • Running restorecon -Rv command after the build is complete, automatically applies correct default_t SELinux context.

  • Creating new directories in / after the RHEL 8.3 system has been installed, automatically applies the expected default_t SELinux context.


  • Red Hat Enterprise Linux 8.3.

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