Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE2

Proto:SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist)

Type:

Parameter:Nothing

182  If Not may_setgroups() Then Return -EPERM
184  If gidsetsize > supplemental group IDs are available Then Return -EINVAL
187  group_info = groups_alloc(gidsetsize)
188  If Not group_info Then Return -ENOMEM
190  retval = groups16_from_user(group_info, grouplist)
191  If retval Then
192  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
193  Return retval
196  groups_sort(group_info)
197  retval = set_current_groups - Change current's group subscription*@group_info: The group list to impose* Validate a group subscription and, if valid, impose it upon current's task* security record.
198  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
200  Return retval