Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\uidgid.h Create Date:2022-07-28 05:38:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kuid_has_mapping

Proto:static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid)

Type:bool

Parameter:

TypeParameterName
struct user_namespace *ns
kuid_tuid
181  Return uid_valid(uid)
Caller
NameDescribe
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.