SELinux context is not preserved during an rsync.
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.