Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unshare_userns

Proto:static inline int unshare_userns(unsigned long unshare_flags, struct cred **new_cred)

Type:int

Parameter:

TypeParameterName
unsigned longunshare_flags
struct cred **new_cred
154  If unshare_flags & New user namespace Then Return -EINVAL
156  Return 0
Caller
NameDescribe
ksys_unshareshare allows a process to 'unshare' part of the process* context which was originally shared using clone. copy_** functions used by do_fork() cannot be used here directly* because they modify an inactive task_struct that is being* constructed