函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\posix_acl.c Create Date:2022-07-29 11:05:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_posix_acl

函数原型:int set_posix_acl(struct inode *inode, int type, struct posix_acl *acl)

返回类型:int

参数:

类型参数名称
struct inode *inode
inttype
struct posix_acl *acl
863  如果非IS_POSIXACL(inode)则返回:负EOPNOTSUPP
865  如果非set_acl则返回:负EOPNOTSUPP
868  如果type恒等于ACL_TYPE_DEFAULT且非S_ISDIR(i_mode)则返回:如果acl则负EACCES否则0
870  如果非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.则返回:负EPERM
873  如果acl
874  ret等于Check if an acl is valid. Returns 0 if it is, or -E... otherwise.
875  如果ret则返回:ret
878  返回:set_acl(inode, acl, type)
调用者
名称描述
posix_acl_xattr_set