Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:setup_userns_sysctls

Proto:bool setup_userns_sysctls(struct user_namespace *ns)

Type:bool

Parameter:

TypeParameterName
struct user_namespace *ns
84  setup_sysctl_set( & set, & set_root, set_is_seen)
85  tbl = kmemdup(user_table, size of user_table , GFP_KERNEL)
86  If tbl Then
88  When i < UCOUNT_COUNTS cycle
89  data = ucount_max[i]
91  sysctls = __register_sysctl_table( & set, "user", tbl)
93  If Not sysctls Then
94  free previously allocated memory
95  retire_sysctl_set( & set)
96  Return false
99  Return true
Caller
NameDescribe
user_namespace_sysctl_init
create_user_nsCreate a new user namespace, deriving the creator from the user in the* passed credentials, and replacing that user with the new root user for the* new namespace.* This is called by copy_creds(), which will finish setting the target task's* credentials.