Bug 11422 - Feature request: add support for Linux libcap[-ng]
Summary: Feature request: add support for Linux libcap[-ng]
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.1
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 20:16 UTC by Kevin Korb
Modified: 2015-07-31 20:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Korb 2015-07-31 20:16:27 UTC
Linux has added a concept called file capabilities.  This allows certain binaries to perform specific privileged functions without requiring SUID root.

Example:
# getcap /bin/ping
/bin/ping = cap_net_raw+ep

Rsync should be able to (optionally of course) copy these attributes as it can copy xattrs and ACLs.  They should also be storable via --fake-super on non-Linux systems.
Comment 1 Kevin Korb 2015-07-31 20:56:55 UTC
Nevermind.  Apparently --xattrs covers this.  I didn't think it did.