VFS: Split inode_permission()
authorDavid Howells <dhowells@redhat.com>
Mon, 25 Jun 2012 11:55:46 +0000 (12:55 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:38:36 +0000 (16:38 +0400)
commit0bdaea9017b9d2b9996e153a71ee03555969b80e
tree112d8c8a2f0adb0b68356b1e39209454a7a6ea71
parent9249e17fe094d853d1ef7475dd559a2cc7e23d42
VFS: Split inode_permission()

Split inode_permission() into inode- and superblock-dependent parts.

This is aimed at unionmounts where the superblock from the upper layer has to
be checked rather than the superblock from the lower layer as the upper layer
may be writable, thus allowing an unwritable file from the lower layer to be
copied up and modified.

Original-author: Valerie Aurora <vaurora@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com> (Further development)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/internal.h
fs/namei.c