How to fix SELinux permission on /tmp directory if the directory is running on tmpfs

Solution In Progress - Updated -

Issue

After every reboot of server /tmp directory gets SELinux permissions tmpfs_t and you need to run restorecon to restore the default context on /tmp directory.

/tmp directory is running on tmpfs

No entry in /etc/fstab for /tmp directory can be found.

Environment

Red Hat Enterprise Linux 7

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