Bug 259521 - net/rsync system extended attributes are not copied
Summary: net/rsync system extended attributes are not copied
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 03:47 UTC by dewayne
Modified: 2021-11-01 05:28 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (rodrigo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2021-10-29 03:47:45 UTC
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.  :>