Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alled with RCU read lock from check_kill_permission()

Proto:static bool kill_ok_by_cred(struct task_struct *t)

Type:bool

Parameter:

TypeParameterName
struct task_struct *t
808  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
809  tcred = __task_cred - Access a task's objective credentials*@task: The task to query* Access the objective credentials of a task. The caller must hold the RCU* readlock.* The result of this function should not be passed directly to get_cred();(t)
811  Return uid_eq( effective UID of the task , saved UID of the task ) || uid_eq( effective UID of the task , real UID of the task ) || uid_eq( real UID of the task , saved UID of the task ) || uid_eq( real UID of the task , real UID of the task ) || ns_capable( user_ns the caps and keyrings are relative to. , Overrides the restriction that the real or effective user ID of aprocess sending a signal must match the real or effective user IDof the process receiving the signal. )
Caller
NameDescribe
check_kill_permissionBad permissions for sending the signal* - the caller must hold the RCU read lock