xfs
[Top] [All Lists]

Re: [PATCH] Check for immutable flag in fallocate path

To: Linux Kernel <linux-kernel@xxxxxxxxxxxxxxx>
Subject: Re: [PATCH] Check for immutable flag in fallocate path
From: Marco Stornelli <marco.stornelli@xxxxxxxxx>
Date: Sat, 26 Feb 2011 15:59:27 +0100
Cc: linux-ext4@xxxxxxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx, cluster-devel@xxxxxxxxxx, xfs@xxxxxxxxxxx, Linux FS Devel <linux-fsdevel@xxxxxxxxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Vvf008CJ2s+8h1b86giKbpLpywp+tnVgXChxmta8WOc=; b=ii5YN3c8cBWI8eWGQnDKMtnb0PjvX8/0u+ebeq/YFHaBj4fkoSAjOHrnYerSD6UTw4 GvSx4PNVvyi6V8nFvitaUmsoDaNoY5FpRBtTpltEcr1E0jbaXHXJ+Mvctt3DWtxCqjLT aGttFE5Hb5qMFC6cv3siVhLng4kmk+iCM8AGA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=A95hYW+tYa+YxChrpgUZMwainqKr84l6i2OuirDkGYc/h1cUSP7GP5FmoCRFoPz9c9 djfg84zjJNWBG8q2F3PlB+AI6OHe1bRRQJ2PYJymlTNnoZGcmucAyU4awKhrWhA1/3kc PoqO0jz0eVyHOn933Fu46uyCU2t58FPB73Ws8=
In-reply-to: <4D6221B8.9040303@xxxxxxxxx>
References: <4D6221B8.9040303@xxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
Il 21/02/2011 09:26, Marco Stornelli ha scritto:
> From: Marco Stornelli <marco.stornelli@xxxxxxxxx>
> 
> All fs must check for the immutable flag in their fallocate callback.
> It's possible to have a race condition in this scenario: an application
> open a file in read/write and it does something, meanwhile root set the
> immutable flag on the file, the application at that point can call
> fallocate with success. Only Ocfs2 check for the immutable flag at the
> moment.
> 
> Signed-off-by: Marco Stornelli <marco.stornelli@xxxxxxxxx>

no comments?

<Prev in Thread] Current Thread [Next in Thread>