Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_groups - Change a group subscription in a set of credentials*@new: The newly prepared set of credentials to alter*@group_info: The group list to install

Proto:void set_groups(struct cred *new, struct group_info *group_info)

Type:void

Parameter:

TypeParameterName
struct cred *new
struct group_info *group_info
125  put_group_info - Release a reference to a group info structure*@group_info: The group info to release( supplementary groups for euid/fsgid )
126  get_group_info - Get a reference to a group info structure*@group_info: The group info to reference* This gets a reference to a set of supplementary groups.* If the caller is accessing a task's credentials, they must hold the RCU read* lock when reading.
127  supplementary groups for euid/fsgid = group_info
Caller
NameDescribe
set_current_groupsset_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.