SELinux context is not preserved during an rsync.

Solution In Progress - Updated -

Issue

  • SELinux context is not preserved during an rsync because the target NFS file system does not have the xattr feature.
  • Running rsync with the options -X does not preserve SELinux context.
  • Observing apparent errors such as ** security.selinux failed: Operation not supported (95) **

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • NFS 4.1 or below.

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