Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xport the group_info to a user-space array

Proto:static int groups_to_user(gid_t __user *grouplist, const struct group_info *group_info)

Type:int

Parameter:

TypeParameterName
gid_t __user *grouplist
const struct group_info *group_info
45  user_ns = current_user_ns()
47  count = ngroups
49  When i < count cycle
51  gid = from_kgid_munged(user_ns, gid[i])
52  If Write a simple value into user space(gid, grouplist + i) Then Return -EFAULT
55  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2