Re: [patch 05/24] sysfs: dont call notify_change

From: Christoph Hellwig
Date: Thu May 08 2008 - 12:50:44 EST


On Tue, May 06, 2008 at 11:13:32AM +0200, Miklos Szeredi wrote:
> From: Miklos Szeredi <mszeredi@xxxxxxx>
>
> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/