函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\groups.c Create Date:2022-07-27 10:35:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int set_current_groups(struct group_info *group_info)

返回类型:int

参数:

类型参数名称
struct group_info *group_info
143  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
144  如果非new则返回:负ENOMEM
147  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
148  返回:mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
调用者
名称描述
SYSCALL_DEFINE2SMP: Our groups are copy-on-write. We can set them safely* without another task interfering.
SYSCALL_DEFINE2