[Bug 259521] net/rsync system extended attributes are not copied

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 29 Oct 2021 03:47:45 UTC

            Bug ID: 259521
           Summary: net/rsync system extended attributes are not copied
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rodrigo@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au
             Flags: maintainer-feedback?(rodrigo@FreeBSD.org)
          Assignee: rodrigo@FreeBSD.org

rsync only copies extended attributes for the user namespace.  It does not copy
system namespace attributes as alluded, in the man page.  

touch file
setextattr user finger bun file
setextattr system vanilla slice file
rsync -aXv file /tmp/
lsextattr user /tmp/file    # ok
lsextattr system /tmp/file  # Empty hunger

I appreciate that this would be non-trivial to fix, particularly as Linux also
has trusted and security namespaces.  May I suggest that the rsync man page
explicitly references USER namespace under the -X option, would be sufficient?

/bin/cp doesn't copy any namespace, which is consistent with the manual. :-/

Fortunately tar does preserve both system and user namespaces.  :>

You are receiving this mail because:
You are the assignee for the bug.