Can I set SELinux contexts for individual files and directories on a GFS2 filesystem?

Solution Unverified - Updated -

Issue

  • The GFS2 product documentation says to use the context mount option to set SELinux contexts for a GFS2 filesystem. Can I set contexts for individual files and directories instead of (or in addition to) using the context mount option?

Environment

  • Red Hat Enterprise Linux 7 (with the Resilient Storage Add-on)
  • A GFS2 filesystem

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