Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pidns_install

Proto:static int pidns_install(struct nsproxy *nsproxy, struct ns_common *ns)

Type:int

Parameter:

TypeParameterName
struct nsproxy *nsproxy
struct ns_common *ns
383  active = task_active_pid_ns(current process)
384  new = to_pid_ns(ns)
386  If Not ns_capable(user_ns, Allow setting zone reclaim policy ) || Not ns_capable(current_user_ns(), Allow setting zone reclaim policy ) Then Return -EPERM
398  If level < level Then Return -EINVAL
401  ancestor = new
402  When level > level cycle
403  ancestor = parent
404  If ancestor != active Then Return -EINVAL
407  put_pid_ns(pid_ns_for_children)
408  pid_ns_for_children = get_pid_ns(new)
409  Return 0