Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Bad permissions for sending the signal* - the caller must hold the RCU read lock

Proto:static int check_kill_permission(int sig, struct kernel_siginfo *info, struct task_struct *t)

Type:int

Parameter:

TypeParameterName
intsig
struct kernel_siginfo *info
struct task_struct *t
828  If Not Test if 'sig' is valid signal. Use this instead of testing _NSIG directly Then Return -EINVAL
831  If Not si_fromuser(info) Then Return 0
834  error = audit_signal_info(sig, t)
835  If error Then Return error
838  If Not same_thread_group(current process, t) && Not alled with RCU read lock from check_kill_permission() Then
841  Case sig == SIGCONT
842  sid = task_session(t)
847  If Not sid || sid == task_session(current process) Then Break
850  Default
851  Return -EPERM
855  Return security_task_kill(t, info, sig, NULL)
Caller
NameDescribe
group_send_sig_infosend signal info to all the members of a group
do_send_specific