diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 07:49:59 +0100 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 07:50:29 +0100 |
commit | 1e1743ebe35ec7e3c1fa732408358fbc614cbbe5 (patch) | |
tree | 9654cd50bb29a4c5ccc498b9b08cc385288bc854 /fs/ext2/acl.c | |
parent | fs: provide rcu-walk aware permission i_ops (diff) | |
download | linux-1e1743ebe35ec7e3c1fa732408358fbc614cbbe5.tar.xz linux-1e1743ebe35ec7e3c1fa732408358fbc614cbbe5.zip |
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>
Diffstat (limited to 'fs/ext2/acl.c')
0 files changed, 0 insertions, 0 deletions