函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:userns_install

函数原型:static int userns_install(struct nsproxy *nsproxy, struct ns_common *ns)

返回类型:int

参数:

类型参数名称
struct nsproxy *nsproxy
struct ns_common *ns
1258  user_ns等于to_user_ns(ns)
1264  如果user_ns恒等于current_user_ns()则返回:负EINVAL
1268  如果非thread_group_empty(当前进程)则返回:负EINVAL
1271  如果users不等于1则返回:负EINVAL
1274  如果非ns_capable(user_ns, Allow setting zone reclaim policy )则返回:负EPERM
1277  cred等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
1278  如果非cred则返回:负ENOMEM
1281  put_user_ns( user_ns the caps and keyrings are relative to. )
1282  set_cred_user_ns(cred, get_user_ns(user_ns))
1284  返回:mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are