Loading...

fedora-selinux-list@redhat.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: rsync, xattrs, ntfs-3g and "selinux.selinux" Murray McAllister Mon Aug 25 05:04:37 2008

Tom London wrote:
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:
[EMAIL PROTECTED] temp]# getfattr -d *
getfattr: setup.log: Operation not supported
[EMAIL PROTECTED] temp]#

On the destination fs, result is
[EMAIL PROTECTED] temp]# getfattr -d *
[EMAIL PROTECTED] temp]#

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

thanks,
   tom

This might be off topic, but I am unable to get rsync -X to preserve the SELinux context: <https://bugzilla.redhat.com/show_bug.cgi?id=458014>.

Cheers.

--
fedora-selinux-list mailing list
[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/fedora-selinux-list