Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_special_pids

Proto:static void set_special_pids(struct pid *pid)

Type:void

Parameter:

TypeParameterName
struct pid *pid
1149  curr = group_leader
1151  If task_session(curr) != pid Then change_pid(curr, PIDTYPE_SID, pid)
1154  If Without tasklist or RCU lock it is not safe to dereference* the result of task_pgrp/task_session even if task == current,* we can race with another thread doing sys_setsid/sys_setpgid. != pid Then change_pid(curr, PIDTYPE_PGID, pid)
Caller
NameDescribe
ksys_setsid