Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:17:30
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Verify that the signaler and signalee either are in the same pid namespace* or that the signaler's pid namespace is an ancestor of the signalee's pid* namespace.

Proto:static bool access_pidfd_pidns(struct pid *pid)

Type:bool

Parameter:

TypeParameterName
struct pid *pid
3650  active = task_active_pid_ns(current process)
3651  p = s_of_pid() returns the pid namespace in which the specified pid was* allocated.* NOTE:* ns_of_pid() is expected to be called for a process (task) that has* an attached 'struct pid' (see attach_pid(), detach_pid()) i.e @pid* is expected to be non-NULL
3653  cycle
3654  If Not p Then Return false
3656  If p == active Then Break
3658  p = parent
3661  Return true
Caller
NameDescribe
SYSCALL_DEFINE4sys_pidfd_send_signal - Signal a process through a pidfd*@pidfd: file descriptor of the process*@sig: signal to send*@info: signal info*@flags: future flags* The syscall currently only signals via PIDTYPE_PID which covers* kill(,