From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758525AbYEELCh (ORCPT ); Mon, 5 May 2008 07:02:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759305AbYEELBv (ORCPT ); Mon, 5 May 2008 07:01:51 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:32901 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759298AbYEELBu (ORCPT ); Mon, 5 May 2008 07:01:50 -0400 Date: Mon, 5 May 2008 07:01:26 -0400 From: Christoph Hellwig To: Miklos Szeredi Cc: akpm@linux-foundation.org, hch@infradead.org, viro@ZenIV.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [patch 09/15] vfs: immutable inode checking cleanup Message-ID: <20080505110126.GD20910@infradead.org> References: <20080505095440.820370974@szeredi.hu> <20080505095520.685137048@szeredi.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080505095520.685137048@szeredi.hu> User-Agent: Mutt/1.5.17 (2007-11-01) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 05, 2008 at 11:54:50AM +0200, Miklos Szeredi wrote: > From: Miklos Szeredi > > Move the immutable and append-only checks from chmod, chown and utimes > into notify_change(). Checks for immutable and append-only files are > always performed by the VFS and not by the filesystem (see > permission() and may_...() in namei.c), so these belong in > notify_change(), and not in inode_change_ok(). Looks fine to me.