Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\capability.c Create Date:2022-07-28 09:12:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode)

Type:bool

Parameter:

TypeParameterName
struct user_namespace *ns
const struct inode *inode
489  Return kuid_has_mapping(ns, i_uid) && kgid_has_mapping(ns, i_gid)
Caller
NameDescribe
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