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

samba-bugs at samba.org samba-bugs at samba.org
Wed Aug 10 01:58:41 UTC 2016


https://bugzilla.samba.org/show_bug.cgi?id=6546

--- Comment #4 from tmhikaru at gmail.com ---
I have been having problems with this bug on 3.1.1 and 3.1.2. To test if the
latest version's xattr fixes would affect it, I also built the git version of
3.1.3dev which is git commit 31e93c322865acea7533176c2278b259890662fc but it
has not helped. What I am seeing:

rsync: rsync_xal_set:
lremovexattr(""/media/backup/main/2016-08-09/sys"","security.selinux") failed:
Permission denied (13)

rsync does not error out, and completes without an errno but prints this
message at the end:
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1186) [sender=3.1.3dev]

Here is the directory in question on my various backups as well as the actual
directory it is attempting to backup:

tm at roll:~/src/rsync$ ls -laZd /media/backup/main/2016-*/sys /sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:default_t:s0   4096 Jul 21 20:09
/media/backup/main/2016-07-22/sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:unlabeled_t:s0 4096 Jul 26 12:24
/media/backup/main/2016-07-26/sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:unlabeled_t:s0 4096 Jul 29 22:00
/media/backup/main/2016-07-30/sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:unlabeled_t:s0 4096 Aug  3 12:41
/media/backup/main/2016-08-03/sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:unlabeled_t:s0 4096 Aug  6 13:34
/media/backup/main/2016-08-06/sys
dr-xr-xr-x.  2 root root unconfined_u:object_r:unlabeled_t:s0 4096 Aug  9 14:25
/media/backup/main/2016-08-09/sys
dr-xr-xr-x. 13 root root system_u:object_r:sysfs_t:s0            0 Aug  9 14:25
/sys

I imagine the problem may be related to the fact I am using unusual features
such as --link-dest, so I will do some further testing to determine what
actually is making rsync goof up with this.

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



More information about the rsync mailing list