]> git.baikalelectronics.ru Git - kernel.git/commit
always call inode_change_ok early in ->setattr
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Jun 2010 09:30:03 +0000 (11:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:38 +0000 (16:47 -0400)
commit6ba58ccfa7b46a847b2a88c20345ce3d842e0576
treefd9ee2fbe0998218b6d90322f85b285887e6fe9d
parent54d3128311e7a76c9285c32cb9bc4aaa7d20b932
always call inode_change_ok early in ->setattr

Make sure we call inode_change_ok before doing any changes in ->setattr,
and make sure to call it even if our fs wants to ignore normal UNIX
permissions, but use the ATTR_FORCE to skip those.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/inode.c
fs/fat/file.c
fs/fuse/dir.c
fs/logfs/file.c
fs/reiserfs/inode.c
mm/shmem.c