From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [patch 05/24] sysfs: dont call notify_change Date: Thu, 8 May 2008 12:50:13 -0400 Message-ID: <20080508165013.GB13914@infradead.org> References: <20080506091327.259950960@szeredi.hu> <20080506091411.769104277@szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, hch@infradead.org, viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman To: Miklos Szeredi Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:38053 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756099AbYEHQuQ (ORCPT ); Thu, 8 May 2008 12:50:16 -0400 Content-Disposition: inline In-Reply-To: <20080506091411.769104277@szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 06, 2008 at 11:13:32AM +0200, Miklos Szeredi wrote: > From: Miklos Szeredi > > sysfs_chmod_file() calls notify_change() to change the permission bits > on a sysfs file. Replace with explicit call to sysfs_setattr() and > fsnotify_change(). > > This is equivalent, except that security_inode_setattr() is not > called. This function is called by drivers, so the security checks do > not make any sense. Looks correct to me, although I really don't see the point for it.