Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:21:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int smack_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | p | |
struct kernel_siginfo * | info | |
int | sig | |
const struct cred * | cred |
2186 | tkp = smk_of_task_struct(p) |
2189 | If Not sig Then Return 0 |
2193 | smk_ad_setfield_u_tsk( & ad, p) |
2198 | If (cred == NULL) Then |
2200 | rc = smk_bu_task(p, Signal delivery requires write , rc) |
2201 | Return rc |
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 | Return rc |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |