Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Modify the ACL for the chmod syscall.

Proto:static int __posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode)

Type:int

Parameter:

TypeParameterName
struct posix_acl *acl
umode_tmode
475  struct posix_acl_entry * group_obj = NULL, * mask_obj = NULL
482  Case e_tag == _tag entry in struct posix_acl_entry
483  e_perm = (mode & S_IRWXU) >> 6
484  Break
486  Case e_tag == ACL_USER
487  Case e_tag == ACL_GROUP
488  Break
490  Case e_tag == ACL_GROUP_OBJ
491  group_obj = pa
492  Break
494  Case e_tag == ACL_MASK
495  mask_obj = pa
496  Break
498  Case e_tag == ACL_OTHER
499  e_perm = mode & S_IRWXO
500  Break
502  Default
503  Return -EIO
507  If mask_obj Then
508  e_perm = (mode & S_IRWXG) >> 3
509  Else
510  If Not group_obj Then Return -EIO
512  e_perm = (mode & S_IRWXG) >> 3
515  Return 0
Caller
NameDescribe
__posix_acl_chmod