函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unshare_userns

函数原型:static inline int unshare_userns(unsigned long unshare_flags, struct cred **new_cred)

返回类型:int

参数:

类型参数名称
unsigned longunshare_flags
struct cred **new_cred
154  如果unshare_flags按位与新用户空间则返回:负EINVAL
156  返回:0
调用者
名称描述
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