函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\uidgid.h Create Date:2022-07-27 06:40:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kuid_has_mapping

函数原型:static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid)

返回类型:bool

参数:

类型参数名称
struct user_namespace *ns
kuid_tuid
181  返回:uid_valid(uid)
调用者
名称描述
privileged_wrt_inode_uidgidprivileged_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.
create_user_nsCreate a new user namespace, deriving the creator from the user in the* passed credentials, and replacing that user with the new root user for the* new namespace.* This is called by copy_creds(), which will finish setting the target task's* credentials.
find_keyring_by_nameFind a keyring with the specified name
key_serial_nextImplement "/proc/keys" to provide a list of the keys on the system that* grant View permission to the caller.
find_ge_key
__key_user_next
bprm_fill_uid
may_createCheck whether we can create an object with dentry child in directory* dir.* 1. We can't do it if child already exists (open has special treatment for* this case, but since we are inlined it's OK)* 2
may_o_create
inode_owner_or_capablede_owner_or_capable - check current task permissions to inode*@inode: inode being checked* Return true if current either has CAP_FOWNER in a namespace with the* inode owner uid mapped, or owns the file.
notify_changey_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object
posix_acl_validCheck if an acl is valid. Returns 0 if it is, or -E... otherwise.