Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:groups16_from_user

Proto:static int groups16_from_user(struct group_info *group_info, old_gid_t __user *grouplist)

Type:int

Parameter:

TypeParameterName
struct group_info *group_info
old_gid_t __user *grouplist
135  user_ns = current_user_ns()
140  When i < ngroups cycle
141  If Get a simple variable from user space(group, grouplist + i) Then Return -EFAULT
144  kgid = make_kgid(user_ns, low2highgid(group))
145  If Not gid_valid(kgid) Then Return -EINVAL
148  gid[i] = kgid
151  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2