Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SMP: Our groups are copy-on-write. We can set them safely* without another task interfering.

Proto:SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist)

Type:

Parameter:Nothing

195  If Not may_setgroups() Then Return -EPERM
197  If gidsetsize > supplemental group IDs are available Then Return -EINVAL
200  group_info = groups_alloc(gidsetsize)
201  If Not group_info Then Return -ENOMEM
203  retval = ll a group_info from a user-space array - it must be allocated already
204  If retval Then
205  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
206  Return retval
209  groups_sort(group_info)
210  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.
211  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
213  Return retval