]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[patch 4/4] vfs: immutable inode checking cleanup
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Jul 2008 13:01:29 +0000 (15:01 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:28 +0000 (20:53 -0400)
commitbeb29e058c35ab69e96e455a12ccf7505f6de425
tree0da9869b7e0422c34423a02216db1a758a55a95a
parentb1da47e29e467f1ec36dc78d009bfb109fd533c7
[patch 4/4] vfs: immutable inode checking cleanup

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().

This should be completely equivalent.

CC: Ulrich Drepper <drepper@redhat.com>
CC: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/attr.c
fs/open.c
fs/utimes.c