Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_posix_acl

Proto:int set_posix_acl(struct inode *inode, int type, struct posix_acl *acl)

Type:int

Parameter:

TypeParameterName
struct inode *inode
inttype
struct posix_acl *acl
863  If Not IS_POSIXACL(inode) Then Return -EOPNOTSUPP
865  If Not set_acl Then Return -EOPNOTSUPP
868  If type == ACL_TYPE_DEFAULT && Not S_ISDIR(i_mode) Then Return If acl Then -EACCES Else 0
870  If Not de_owner_or_capable - check current task permissions to inode*@inode: inode being checked* Return true if current either has CAP_FOWNER in a namespace with the* inode owner uid mapped, or owns the file. Then Return -EPERM
873  If acl Then
874  ret = Check if an acl is valid. Returns 0 if it is, or -E... otherwise.
875  If ret Then Return ret
878  Return set_acl(inode, acl, type)
Caller
NameDescribe
posix_acl_xattr_set