函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\capability.c Create Date:2022-07-27 10:12:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:privileged_wrt_inode_uidgid - Do capabilities in the namespace work over the inode?*@ns: The user namespace in question*@inode: The inode in question* Return true if the inode uid and gid are within the namespace.

函数原型:bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode)

返回类型:bool

参数:

类型参数名称
struct user_namespace *ns
const struct inode *inode
489  返回:kuid_has_mapping(ns, i_uid)且kgid_has_mapping(ns, i_gid)
调用者
名称描述
capable_wrt_inode_uidgidapable_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
would_dump