Unable to rsync files from RHEL 7 to RHEL 6 with SELinux enabled
If i try to rsync files from a RHEL 7 to a RHEL 6 with SELinux enabled on both machines and with -XA flags on rsync I get this error:
rsync: rsync_xal_set: lsetxattr("etc/.pwd.lock","security.selinux") failed: Invalid argument (22)
The problem seems to be related to the fact that RHEL 7 has selinux contexts that don't exist on RHEL 6.
Is there any way to get around this other than turning of SELinux on the RHEL 6?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
