samba-bugs at samba.org
2014-Mar-14 03:05 UTC
[Bug 10496] New: --itemize-changes always reports xattr changes with --xattrs --fake-super
https://bugzilla.samba.org/show_bug.cgi?id=10496 Summary: --itemize-changes always reports xattr changes with --xattrs --fake-super Product: rsync Version: 3.1.1 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: bgilbert at backtick.net QAContact: rsync-qa at samba.org 3.1.1pre1 on RHEL 6.5. The combination of --itemize-changes --xattrs --fake-super causes a ".f........x" or ".d........x" line to be printed for every unmodified file or directory in the transfer: $ mkdir a $ touch a/1 a/2 a/3 $ rsync -rtiX --fake-super a/ b cd+++++++++ ./>f+++++++++ 1 >f+++++++++ 2 >f+++++++++ 3$ rsync -rtiX --fake-super a/ b .d........x ./ .f........x 1 .f........x 2 .f........x 3 -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Mar-14 07:33 UTC
[Bug 10496] --itemize-changes always reports xattr changes with --xattrs --fake-super
https://bugzilla.samba.org/show_bug.cgi?id=10496 --- Comment #1 from Kevin Korb <rsync at sanitarium.net> 2014-03-14 07:33:09 UTC --- It works for me. Can you verify if it is actually setting the extended attributes with getfattr? If not then you probably need the user_xattr mount option. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Mar-14 21:51 UTC
[Bug 10496] --itemize-changes always reports xattr changes with --xattrs --fake-super
https://bugzilla.samba.org/show_bug.cgi?id=10496 --- Comment #2 from Benjamin Gilbert <bgilbert at backtick.net> 2014-03-14 21:51:17 UTC --- Yes, it is: $ getfattr -d -m - b/1 # file: b/1 security.selinux="unconfined_u:object_r:user_home_t:s0" user.rsync.%stat="100664 0,0 0:0" user.rsync.security.selinux="unconfined_u:object_r:user_home_t:s0" The problem seems to be SELinux-related: I can reproduce this on Fedora 20 with SELinux enabled (enforcing or permissive), and SELinux is enabled (enforcing) on the RHEL 6 system. On Fedora 20 with SELinux disabled, the problem does not occur. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Mar-14 21:54 UTC
[Bug 10496] --itemize-changes always reports xattr changes with --xattrs --fake-super
https://bugzilla.samba.org/show_bug.cgi?id=10496 --- Comment #3 from Kevin Korb <rsync at sanitarium.net> 2014-03-14 21:54:00 UTC --- That makes sense. I was testing on Gentoo without any SELinux. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Reasonably Related Threads
- [Bug 10357] New: make check fails for xattr tests
- [libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()
- DO NOT REPLY [Bug 5298] New: xattrs and acls do not work well together along with fake-super, even worse on XFS
- Re: [common PATCH 3/3] mlcustomize: do not relabel if not enforcing (RHBZ#1828952)
- [Bug 9594] New: Error transferring user and non-user xattr using --fake-super under Linux