When the home directories of the users are created at a custom location, how can it be ensured that the SELinux security context types are picked up correctly and automatically, similar to those under '/home/' directory ?

Solution Verified - Updated -

Issue

  • There is a requirement to set the home directories of the users under a custom location under /. What SELinux security context type should be assigned to the directory, to ensure that the SELinux security context types are picked up correctly and automatically for the contents, and how should it be done ?

Environment

  • Red Hat Enterprise Linux

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