Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:proc_uid_map_write

Proto:ssize_t proc_uid_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
1035  seq = needed for tty driver, and maybe others
1036  ns = private
1037  seq_ns = seq_user_ns(seq)
1039  If Not parent Then Return -EPERM
1042  If seq_ns != ns && seq_ns != parent Then Return -EPERM
1045  Return map_write(file, buf, size, ppos, Allows forged pids on socket credentials passing. , & uid_map, & uid_map)