]> git.baikalelectronics.ru Git - kernel.git/commit
fs: provide simple rcu-walk generic_check_acl implementation
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:59 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:29 +0000 (17:50 +1100)
commitf2d514ba419fb1751569b2cda9ba161e9aad06e2
tree9654cd50bb29a4c5ccc498b9b08cc385288bc854
parentdeaf78bff83c0efa426641cf8018f831d45de130
fs: provide simple rcu-walk generic_check_acl implementation

This simple implementation just checks for no ACLs on the inode, and
if so, then the rcu-walk may proceed, otherwise fail it.

This could easily be extended to put acls under RCU and check them
under seqlock, if need be. But this implementation is enough to show
the rcu-walk aware permissions code for path lookups is working, and
will handle cases where there are no ACLs or ACLs in just the final
element.

This patch implicity converts tmpfs to rcu-aware permission check.
Subsequent patches onvert ext*, xfs, and, btrfs. Each of these uses
acl/permission code in a different way, so convert them all to provide
templates and proof of concept.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/generic_acl.c
include/linux/posix_acl.h