函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:groups16_from_user

函数原型:static int groups16_from_user(struct group_info *group_info, old_gid_t __user *grouplist)

返回类型:int

参数:

类型参数名称
struct group_info *group_info
old_gid_t __user *grouplist
135  user_ns等于current_user_ns()
140 i小于ngroups循环
141  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(group, grouplist + i)则返回:负EFAULT
144  kgid等于make_kgid(user_ns, low2highgid(group))
145  如果非gid_valid(kgid)则返回:负EINVAL
148  gid[i]等于kgid
151  返回:0
调用者
名称描述
SYSCALL_DEFINE2