Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_acl

Proto:static int check_acl(struct inode *inode, int mask)

Type:int

Parameter:

TypeParameterName
struct inode *inode
intmask
267  If mask & called from RCU mode, don't block Then
268  acl = get_cached_acl_rcu(inode, a_type field in acl_user_posix_entry_t )
269  If Not acl Then Return -EAGAIN
272  If is_uncached_acl(acl) Then Return -ECHILD
274  Return posix_acl_permission(inode, acl, mask & ~called from RCU mode, don't block )
277  acl = get_acl(inode, a_type field in acl_user_posix_entry_t )
278  If IS_ERR(acl) Then Return PTR_ERR(acl)
280  If acl Then
281  error = posix_acl_permission(inode, acl, mask)
282  Free an ACL handle.
283  Return error
287  Return -EAGAIN
Caller
NameDescribe
acl_permission_checkThis does the basic permission checking