[Bug 6546] Rsync incurs errors trying to remove "security.selinux" xattr

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 29 14:38:01 UTC 2016


--- Comment #6 from EML <sa212+samba-bugzilla at cyconix.com> ---
I'm seeing this on a clean Centos 7.2.1511 install, rsync 3.0.9.

selinux is disabled on the src, and enabled on the dst, but in permissive mode,
so I'm not expecting errors.

'ausearch -m avc -ts recent' shows nothing, and there's nothing recent in
/var/log/audit/audit.log. So selinux isn't reporting an issue, but rsync is.

My specific errors are

# rsync -avXz -e 'ssh -p 1234' remote-sys:/var/www/ www
...lots of:
rsync: rsync_xal_set: lremovexattr(""/var/www/."","security.selinux") failed:
Permission denied (13)

Note that this only happens when I run as root, and when backing up something
with extended attributes. I'm not seeing any of the --link-dest/whatver
complciations from comment #5 - this is a completely standard backup of a
remote system with xattrs.

Any workaround suggestions? It's difficult to run as an ordinary user because I
can't run as the remote user (apache).

You are receiving this mail because:
You are the QA Contact for the bug.

More information about the rsync mailing list