Bug 873467 - rsync -pogAXtlHrDx tries to modify xattrs on bind mounted directories
Summary: rsync -pogAXtlHrDx tries to modify xattrs on bind mounted directories
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rsync
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Luscon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-05 22:59 UTC by Brian Lane
Modified: 2013-02-08 15:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-08 15:10:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brian Lane 2012-11-05 22:59:49 UTC
In the live install of Anaconda we use rsync to copy the install over to the target system. We bind mount /dev/ /proc/ /sys/ and a number of things under /dev/. When running rsync using -x (single file system) we get some errors:

17:48:50,259 INFO program: Running... rsync -pogAXtlHrDx /mnt/install/source/ /mnt/sysimage
17:48:51,536 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev"","security.selinux") failed: Permission denied (13)
17:48:51,538 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/fd"","security.selinux") failed: Permission denied (13)
17:48:51,538 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/full"","security.selinux") failed: Permission denied (13)
17:48:51,538 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/null"","security.selinux") failed: Permission denied (13)
17:48:51,539 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/ptmx"","security.selinux") failed: Permission denied (13)
17:48:51,539 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/random"","security.selinux") failed: Permission denied (13)
17:48:51,539 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/stderr"","security.selinux") failed: Permission denied (13)
17:48:51,540 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/stdin"","security.selinux") failed: Permission denied (13)
17:48:51,540 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/stdout"","security.selinux") failed: Permission denied (13)
17:48:51,540 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/tty"","security.selinux") failed: Permission denied (13)
17:48:51,541 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/urandom"","security.selinux") failed: Permission denied (13)
17:48:51,541 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/vcsa"","security.selinux") failed: Permission denied (13)
17:48:51,541 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/zero"","security.selinux") failed: Permission denied (13)
17:48:51,542 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/pts"","security.selinux") failed: Operation not supported (95)
17:48:51,542 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/dev/shm"","security.selinux") failed: Permission denied (13)
17:48:58,245 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/proc"","security.selinux") failed: Operation not supported (95)
17:48:58,249 ERR program: rsync: rsync_xal_set: lremovexattr(""/mnt/sysimage/sys"","security.selinux") failed: Operation not supported (95)
17:51:47,024 ERR program: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]

Adding these directories as --excludes works, but isn't it an error that -x doesn't skip them?

Comment 1 Michal Luscon 2013-02-08 15:10:37 UTC
This is know rsync issue caused by using stat() function for recognizing filesystem boundaries. Upstream advise to use excludes as you already did.


Note You need to log in before you can comment on or make changes to this bug.