函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:groups16_to_user

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

返回类型:int

参数:

类型参数名称
old_gid_t __user *grouplist
struct group_info *group_info
117  user_ns等于current_user_ns()
122 i小于ngroups循环
123  kgid等于gid[i]
124  group等于high2lowgid(from_kgid_munged(user_ns, kgid))
125  如果put_user - Write a simple value into user space(group, grouplist + i)则返回:负EFAULT
129  返回:0
调用者
名称描述
SYSCALL_DEFINE2