https://bugzilla.samba.org/show_bug.cgi?id=5520

           Summary: Rsync cannot copy to a vfat partition on kernel 2.6.25+
           Product: rsync
           Version: 3.0.3
          Platform: All
               URL: https://bugzilla.redhat.com/show_bug.cgi?id=449080
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]


This was reported by me on the RedHat Bugzilla (URL given) and reclassified as
a kernel bug. However, this seems to be caused by a conscious decision of the
vfat Linux kernel developers and therefore may be easier to solve from the
rsync end.

In a nutshell: Rsync cannot now copy to a vfat partition even if the user is
root (yes!). This is due to new and more strict vfat operations security model
adopted in the kernel. When rsync tries to mkstemp it gets a "not permitted"
error.

This bug was discussed on LKML (the best URL is
http://www.gossamer-threads.com/lists/linux/kernel/927626) with n conclusions
so far. However it is clear that:

1) Kernel 2.6.25 (and newer) does not let "allows only acceptable chmod(), and
if not acceptable, it returns -EPERM. Old one allows even if it can't store the
disk inode."

2) As Hirofumi Ogawa explained to me in an email: 
"rsync will try to set permission to 0700 or something. But, FAT can't
store almost permissions to storage, because FAT doesn't have permission
field on disk inode (FAT have permission field on only memory
inode). So, chmod() returns -EPERM."

3) It is not clear how and whether at all it will be solved in the kernel
because as Pavel Machek put it: "So we have choice between security hole and
regression...?"

The question is: Can this be solved from the rsync end?


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to