函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:15:25
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alled with RCU read lock from check_kill_permission()

函数原型:static bool kill_ok_by_cred(struct task_struct *t)

返回类型:bool

参数:

类型参数名称
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  返回:uid_eq(有效uid, 保留uid)或uid_eq(有效uid, 进程uid)或uid_eq(进程uid, 保留uid)或uid_eq(进程uid, 进程uid)或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. )
调用者
名称描述
check_kill_permissionBad permissions for sending the signal* - the caller must hold the RCU read lock