]> git.baikalelectronics.ru Git - kernel.git/commit
Make 'check_acl()' a first-class filesystem op
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Aug 2009 18:51:25 +0000 (11:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2009 18:07:44 +0000 (11:07 -0700)
commit3e12715bb98603ce3ed40f8e507de47caf0c30e8
treeb4e402a2a544be7c59bccd4b4533787f2f19e7bc
parent15f75efdbebd55fc87e2f65c8e7bf99f920257d1
Make 'check_acl()' a first-class filesystem op

This is stage one in flattening out the callchains for the common
permission testing.  Rather than have most filesystem implement their
own inode->i_op->permission function that just calls back down to the
VFS layers 'generic_permission()' with the per-filesystem ACL checking
function, the filesystem can just expose its 'check_acl' function
directly, and let the VFS layer do everything for it.

This is all just preparatory - no filesystem actually enables this yet.

Reviewed-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namei.c
include/linux/fs.h