samba-bugs at samba.org
2009-Sep-05 18:16 UTC
DO NOT REPLY [Bug 6694] New: rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 Summary: rsync -A drops mask from ACL Product: rsync Version: 3.0.6 Platform: Sparc OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: bugzilla at baldwin.users.panix.com QAContact: rsync-qa at samba.org CC: bugzilla at baldwin.users.panix.com rsync is supposed to preserve ACLs with the -A option. However, rsync 3.0.6 does not preserve ACLs, as it drops the "mask" portion of the ACL. wayne said on the mailing list: Rsync was of the belief that a mask was only needed if an ACL had named values, otherwise it tried to simplify the ACL to mask off the group mode and dropped the mask. I've checked in a change that makes it keep whatever mask value is specified, so the ACLs should be identical now. This will get released in 3.0.6. ..wayne.. However, this has not been done. Example (performed as root): # rsync --version rsync version 3.0.6 protocol version 30 Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace, append, ACLs, no xattrs, iconv, no symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. # getfacl example.txt # file: example.txt # owner: root # group: other user::--- user:jdb:r-- #effective:r-- group::--- #effective:--- mask:r-- <======== NOTE MASK other:--- # rsync -aA example.txt jdb at remote:/var/tmp # ssh -q jdb at remote 'ls -l /var/tmp/example.txt; getfacl /var/tmp/example.txt' ----------+ 1 root other 355 Sep 5 14:07 /var/tmp/example.txt # file: /var/tmp/example.txt # owner: root # group: other user::--- user:jdb:r-- #effective:--- group::--- #effective:--- mask:--- <======== NOTE MASK other:--- [ rsync is 3.0.6 on both ends ] -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Sep-05 18:28 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 ------- Comment #1 from bugzilla at baldwin.users.panix.com 2009-09-05 13:28 CST ------- Further testing shows that not only is the mask not preserved on transfer, but if it already exists, it is eliminated! -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Sep-07 21:47 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 wayned at samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #2 from wayned at samba.org 2009-09-07 16:47 CST ------- Just to be 100% sure, run this and verify that it says 3.0.6: ssh -l jdb remote rsync --version I assume that will be OK a the real problem appears to be that that your file has a mask of "r" but the ls display shows (and presumably mode value in stat() returns) no corresponding group=r mode. That should not be possible with posix ACLs. So, something is very weird in Solaris ACLs. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Sep-07 22:54 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 ------- Comment #3 from matt at mattmccutchen.net 2009-09-07 17:54 CST ------- The unusual behavior of Solaris ACLs was previously discussed in this thread: http://lists.samba.org/archive/rsync/2006-October/016404.html -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Sep-07 23:07 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 ------- Comment #4 from wayned at samba.org 2009-09-07 18:07 CST ------- I used the --fake-super option to try a copy that is otherwise impossible on linux (since I don't have access to solaris) -- an ACL that has a mask that doesn't match the group number. Rsync duplicated the values correctly (from xattr value to xattr value). So, this makes me wonder if setting the mode changes the mask on Solaris. For example, if you do this: setfacl -m m:r foo chmod 0 foo getfacl foo Does the mask get reset? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Sep-08 04:48 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 ------- Comment #5 from matt at mattmccutchen.net 2009-09-07 23:48 CST ------- Yes, according to the message linked in comment #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, or are watching the QA contact.
samba-bugs at samba.org
2011-Feb-22 17:04 UTC
DO NOT REPLY [Bug 6694] rsync -A drops mask from ACL
https://bugzilla.samba.org/show_bug.cgi?id=6694 wayned at samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #6 from wayned at samba.org 2011-02-22 11:04 CST ------- 3.0.8 has some more ACL mask improvements that should hopefully fix this. If it is still broken, feel free to reopen this bug. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Maybe Matching Threads
- DO NOT REPLY [Bug 6752] New: --force option doesn't work as expected/documented
- DO NOT REPLY [Bug 7015] New: Build problems on HP-UX, Tru64 -- alloca, -Wno-unused-parameter
- DO NOT REPLY [Bug 5201] New: Rsync lets user corrupt dest by applying non-inplace batch in inplace mode
- DO NOT REPLY [Bug 7070] New: Permission denied message with --fake-super and permissionless directory
- DO NOT REPLY [Bug 6915] New: Reject passing an argument to an option that doesn't take one