Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ns_get_owner

Proto:struct ns_common *ns_get_owner(struct ns_common *ns)

Type:struct ns_common

Parameter:

TypeParameterName
struct ns_common *ns
1289  my_user_ns = current_user_ns()
1293  owner = p = owner(ns)
1294  cycle
1295  If Not p Then Return ERR_PTR( - EPERM)
1297  If p == my_user_ns Then Break
1299  p = parent
1302  Return ns