rsync, xattrs, ntfs-3g and "selinux.selinux"

Tom London selinux at gmail.com
Sun Aug 24 21:20:37 UTC 2008


Running rawhide.

I use "rsync" to backup my system to a USB hard drive.

I also ntfs-3g mount a WinXP partition to '/mnt/windows' on boot, and
I use the above rsync to back that up as well.

Adding '-xattrs' to the argument list for rsync seems to produce scads
of the following (I'm guessing one for each file in the ntfs-3g file
system ):

rsync: rsync_xal_clear:
lremovexattr("mnt/windows/WINDOWS/twain_32/wiatwain.ds","security.selinux")
failed: Permission denied (13)
rsync: rsync_xal_clear:
lremovexattr("mnt/windows/temp","security.selinux") failed: Permission
denied (13)
rsync: rsync_xal_clear:
lremovexattr("mnt/windows/temp/setup.log","security.selinux") failed:
Permission denied (13)

Destination fs i ext4dev.

When mounted, all the files in /mnt/windows have type: fusefs_t.  When
rsych'ed, the type on the ext4 fs is file_t.

Running 'getfatttr -d' on the source files produces, for example:
[root at localhost temp]# getfattr -d *
getfattr: setup.log: Operation not supported
[root at localhost temp]#

On the destination fs, result is
[root at localhost temp]# getfattr -d *
[root at localhost temp]#

This something due to the way I mounted the ntfs-3g fs? The way I run
rsync?  Other?

thanks,
   tom
-- 
Tom London




More information about the fedora-selinux-list mailing list