mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
shmfs: use 'check_acl' instead of 'permission'
shmfs wants purely standard POSIX ACL semantics, so we can use the new generic VFS layer POSIX ACL checking rather than cooking our own 'permission()' function. Reviewed-by: James Morris <[email protected]> Acked-by: Serge Hallyn <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5909ccaa30
commit
6d848a488a
3 changed files with 5 additions and 14 deletions
|
|
@ -2446,7 +2446,7 @@ static const struct inode_operations shmem_inode_operations = {
|
|||
.getxattr = generic_getxattr,
|
||||
.listxattr = generic_listxattr,
|
||||
.removexattr = generic_removexattr,
|
||||
.permission = shmem_permission,
|
||||
.check_acl = shmem_check_acl,
|
||||
#endif
|
||||
|
||||
};
|
||||
|
|
@ -2469,7 +2469,7 @@ static const struct inode_operations shmem_dir_inode_operations = {
|
|||
.getxattr = generic_getxattr,
|
||||
.listxattr = generic_listxattr,
|
||||
.removexattr = generic_removexattr,
|
||||
.permission = shmem_permission,
|
||||
.check_acl = shmem_check_acl,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
@ -2480,7 +2480,7 @@ static const struct inode_operations shmem_special_inode_operations = {
|
|||
.getxattr = generic_getxattr,
|
||||
.listxattr = generic_listxattr,
|
||||
.removexattr = generic_removexattr,
|
||||
.permission = shmem_permission,
|
||||
.check_acl = shmem_check_acl,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue