Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754512AbYFAVMi (ORCPT ); Sun, 1 Jun 2008 17:12:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751736AbYFAVMb (ORCPT ); Sun, 1 Jun 2008 17:12:31 -0400 Received: from mail.parknet.ad.jp ([210.171.162.6]:58489 "EHLO mail.officemail.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbYFAVMa (ORCPT ); Sun, 1 Jun 2008 17:12:30 -0400 From: OGAWA Hirofumi To: Pavel Machek Cc: Dave Jones , Linux Kernel Subject: Re: Rsync cannot copy to a vfat partition on kernel 2.6.25 References: <200805301659.m4UGx3AW001503@bz-web2.app.phx.redhat.com> <20080530171432.GA32480@redhat.com> <87prr36284.fsf@duaron.myhome.or.jp> <20080601203229.GA5615@ucw.cz> Date: Mon, 02 Jun 2008 06:12:23 +0900 In-Reply-To: <20080601203229.GA5615@ucw.cz> (Pavel Machek's message of "Sun, 1 Jun 2008 22:32:29 +0200") Message-ID: <878wxouafc.fsf@duaron.myhome.or.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.10/RELEASE, bases: 24052007 #308098, status: clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1201 Lines: 32 Pavel Machek writes: > Hi! Hi, >> > We had a user report at https://bugzilla.redhat.com/show_bug.cgi?id=449080 >> > that in 2.6.25, he can no longer rsync to a vfat partition, even as root. >> > I just reproduced this here. It gets -EPERM in the mkstemp call. >> > (full strace in the bug report). >> > >> > Did we change behaviour somehow in the vfat code? >> > 2.6.24.7 works fine apparently. >> >> Yes, it was changed. New one allows only acceptable chmod(), and if not >> acceptable, it returns -EPERM. Old one allows even if it can't store the >> disk inode. But it may be too strict for users. > > Hmm... but I guess mkstemp is no longer safe with this? > > So we have choice between security hole and regression...? Maybe. But if users choose the group or world writable umask, I guess nobody would care the permission of temporary file, because all file is writable always. Um.. -- OGAWA Hirofumi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/