函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:09
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:de_init_owner - Init uid,gid,mode for new inode according to posix standards*@inode: New inode*@dir: Directory inode*@mode: mode of the new inode

函数原型:void inode_init_owner(struct inode *inode, const struct inode *dir, umode_t mode)

返回类型:void

参数:

类型参数名称
struct inode *inode
const struct inode *dir
umode_tmode
2054  i_uid等于current_fsuid()
2055  如果diri_mode按位与S_ISGID
2056  i_gid等于i_gid
2059  如果S_ISDIR(mode)则mode或等于S_ISGID
2061  否则如果mode按位与S_ISGID按位或S_IXGRP的值的值恒等于S_ISGID按位或S_IXGRP的值且非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的反
2065  否则i_gid等于current_fsgid()
2067  i_mode等于mode
调用者
名称描述
ramfs_get_inode
bpf_get_inode