samba-bugs at samba.org
2018-Jan-23 13:11 UTC
[Bug 13241] New: A problem with test for xattrs transfer
https://bugzilla.samba.org/show_bug.cgi?id=13241 Bug ID: 13241 Summary: A problem with test for xattrs transfer Product: rsync Version: 3.1.2 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter: mruprich at redhat.com QA Contact: rsync-qa at samba.org Hi, when running tests for rsync on Fedora, it fails on the xattrs.test and xattrs-hlink.test. It always fails on the line rsync -aiX --fake-super --link-dest=../chk . ../to with this result: --- omitted --- user.dir1="need to test directory xattrs too" user.dir2="another xattr" user.dir3="this is one last one for the moment" +user.rsync.security.selinux="unconfined_u:object_r:user_home_t:s0" --- omitted --- for basically every file. This only happens when the --fake-super option is on. For instance line rsync-3.1.2/rsync -aiX -H --super --link-dest=../chk . ../to is not affected. Looking at the xls() method in the test, it uses 'getfattr -d'. The original files will never show the user.rsync.security.selinux="unconfined_u:object_r:user_home_t:s0" with this command. This attribute has to be specifically asked for with 'getfattr -n security.selinux'. Looking into the code the function sys_lgetxattr is used to get extended attributes and it asks specifically for the security.selinux attribute. And this attribute gets transferred to the destination file and is visible with 'getfattr -d'. Example:> mkdir dir_a dir_b > echo "Hello world" > dir_a/foo.txt > getfattr -d dir_a/foo.txt > getfattr -n security.selinux dir_a/foo.txt# file: dir_a/foo.txt security.selinux="unconfined_u:object_r:user_home_t:s0"> rsync -aiX --fake-super dir_a/ dir_b/ > getfattr -d dir_b/foo.txt# file: dir_b/foo.txt user.rsync.security.selinux="unconfined_u:object_r:user_home_t:s0">As you can see rsync transfers this attribute and it is visible after issuing 'getfattr -d'. I'm not sure if this should happen but either the xattrs.txt file used for the diff in the test should be edited or there is something wrong with the --fake-super option combined with -X. Thanks for any help on this. Michal -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2018-Feb-28 20:51 UTC
[Bug 13241] A problem with test for xattrs transfer
https://bugzilla.samba.org/show_bug.cgi?id=13241 Dave Gordon <dg32768 at zoho.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dg32768 at zoho.eu --- Comment #1 from Dave Gordon <dg32768 at zoho.eu> --- When I run "make check" (version 3.1.3) the xattrs test reports Running .../rsync/rsync -aiX -f-x_system.* -f-x_security.* --fake-super --link-dest=../chk . ../to which appears to be specifically excluding copying any system.* or security.* xattrs in --fake-super mode (and the same in --super mode, for that matter), thus avoiding spurious diffs for additional xattrs that may be present on certain systems. So it looks like this problem is already fixed by commit 87bc2240115a2a1beadd098518a17719908da2cb Author: Wayne Davison <wayned at samba.org> Date: Sun Jan 22 16:01:45 2017 -0800 .Dave. -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2018-Mar-01 12:04 UTC
[Bug 13241] A problem with test for xattrs transfer
https://bugzilla.samba.org/show_bug.cgi?id=13241 --- Comment #2 from Michal Ruprich <mruprich at redhat.com> --- Thanks for the answer Dave, I filed this bug a few days before the 3.1.3 version came out. I was trying the make check with 3.1.2 release and there it was failing. With the new version this test passes without problems. -- You are receiving this mail because: You are the QA Contact for the bug.
Possibly Parallel Threads
- rsync 3.0.2 with --fileflags on FreeBSD: cannot rsync hardlinked immutable files
- how to take least risk on rsync dir
- [Bug 10357] New: make check fails for xattr tests
- recursive scp fails on ReliantUNIX 5.43 (using OpenSSH 3.4p1)
- [Bug 13364] New: rsyncd clips trims relative symlinks outside of source tree