函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-27 20:50:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smack_task_kill - Smack check on signal delivery*@p: the task object*@info: unused*@sig: unused*@cred: identifies the cred to use in lieu of current's* Return 0 if write access is permitted

函数原型:static int smack_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)

返回类型:int

参数:

类型参数名称
struct task_struct *p
struct kernel_siginfo *info
intsig
const struct cred *cred
2186  tkp等于smk_of_task_struct(p)
2189  如果非sig则返回:0
2192  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
2193  smk_ad_setfield_u_tsk( & ad, p)
2198  如果(cred == NULL)则
2199  rc等于smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
2200  rc等于smk_bu_task(p, Signal delivery requires write , rc)
2201  返回:rc
2208  skp等于Present a pointer to the smack label entry in an task blob.
2209  rc等于smk_access(skp, tkp, Signal delivery requires write , & ad)
2210  rc等于smk_bu_note("USB signal", skp, tkp, Signal delivery requires write , rc)
2211  返回:rc