Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:proc_gid_map_write

Proto:ssize_t proc_gid_map_write(struct file *file, const char __user *buf, size_t size, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *buf
size_tsize
loff_t *ppos
1052  seq = needed for tty driver, and maybe others
1053  ns = private
1054  seq_ns = seq_user_ns(seq)
1056  If Not parent Then Return -EPERM
1059  If seq_ns != ns && seq_ns != parent Then Return -EPERM
1062  Return map_write(file, buf, size, ppos, Allows forged gids on socket credentials passing. , & gid_map, & gid_map)