Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_cred_user_ns

Proto:static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns)

Type:void

Parameter:

TypeParameterName
struct cred *cred
struct user_namespace *user_ns
47  SUID-less security management = SECUREBITS_DEFAULT
48  caps our children can inherit = CAP_EMPTY_SET
49  caps we're permitted = CAP_FULL_SET
50  caps we can actually use = CAP_FULL_SET
51  Ambient capability set = CAP_EMPTY_SET
52  capability bounding set = CAP_FULL_SET
54  key_put( assumed request_key authority )
55  assumed request_key authority = NULL
58  user_ns the caps and keyrings are relative to. = user_ns
Caller
NameDescribe
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.
userns_install