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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.