函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_acl_update_mode - update mode in set_acl*@inode: target inode*@mode_p: mode (pointer) for update*@acl: acl pointer* Update the file mode when setting an ACL: compute the new file permission* bits based on the ACL

函数原型:int posix_acl_update_mode(struct inode *inode, umode_t *mode_p, struct posix_acl **acl)

返回类型:int

参数:

类型参数名称
struct inode *inode
umode_t *mode_p
struct posix_acl **acl
650  mode等于i_mode
653  error等于Returns 0 if the acl can be exactly represented in the traditional* file mode permission bits, or else 1. Returns -E... on error.
654  如果error小于0则返回:error
656  如果error恒等于0则 * acl = NULL
658  如果非Check whether we're fsgid/egid or in the supplemental group..且非apable_wrt_inode_uidgid - Check nsown_capable and uid and gid mapped*@inode: The inode in question*@cap: The capability in question* Return true if the current task has the given capability targeted at* its own user namespace and that the given inode's mode与等于S_ISGID的反
661  mode_p等于mode
662  返回:0
调用者
名称描述
simple_set_acl