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_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

Proto:int posix_acl_update_mode(struct inode *inode, umode_t *mode_p, struct posix_acl **acl)

Type:int

Parameter:

TypeParameterName
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  If error < 0 Then Return error
656  If error == 0 Then * acl = NULL
658  If Not Check whether we're fsgid/egid or in the supplemental group.. && Not 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 Then mode &= ~S_ISGID
661  mode_p = mode
662  Return 0
Caller
NameDescribe
simple_set_acl