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:posix_acl_chmod

Proto:int posix_acl_chmod(struct inode *inode, umode_t mode)

Type:int

Parameter:

TypeParameterName
struct inode *inode
umode_tmode
558  ret = 0
560  If Not IS_POSIXACL(inode) Then Return 0
562  If Not set_acl Then Return -EOPNOTSUPP
565  acl = get_acl(inode, a_type field in acl_user_posix_entry_t )
566  If IS_ERR_OR_NULL(acl) Then
567  If acl == ERR_PTR( - EOPNOTSUPP) Then Return 0
569  Return PTR_ERR(acl)
572  ret = __posix_acl_chmod( & acl, GFP_KERNEL, mode)
573  If ret Then Return ret
575  ret = set_acl(inode, acl, a_type field in acl_user_posix_entry_t )
576  Free an ACL handle.
577  Return ret