Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroupns_install

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

Type:int

Parameter:

TypeParameterName
struct nsproxy *nsproxy
struct ns_common *ns
100  cgroup_ns = to_cg_ns(ns)
102  If Not ns_capable(current_user_ns(), Allow setting zone reclaim policy ) || Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return -EPERM
107  If cgroup_ns == cgroup_ns Then Return 0
110  get_cgroup_ns(cgroup_ns)
111  put_cgroup_ns(cgroup_ns)
112  cgroup_ns = cgroup_ns
114  Return 0