函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:security_task_alloc

函数原型:int security_task_alloc(struct task_struct *task, unsigned long clone_flags)

返回类型:int

参数:

类型参数名称
struct task_struct *task
unsigned longclone_flags
1506  rc等于lsm_task_alloc - allocate a composite task blob*@task: the task that needs a blob* Allocate the task blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
1508  如果rc则返回:rc
1510  rc等于call_int_hook(task_alloc, 0, task, clone_flags)
1511  如果此条件成立可能性小(为编译器优化)(rc)则security_task_free(task)
1513  返回:rc
调用者
名称描述
copy_process创建进程