函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:security_cred_alloc_blank

函数原型:int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct cred *cred
gfp_tgfp
1526  rc等于lsm_cred_alloc - allocate a composite cred blob*@cred: the cred that needs a blob*@gfp: allocation type* Allocate the cred blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
1528  如果rc则返回:rc
1531  rc等于call_int_hook(Allocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM., 0, cred, gfp)
1532  如果此条件成立可能性小(为编译器优化)(rc)则security_cred_free(cred)
1534  返回:rc
调用者
名称描述
cred_alloc_blankAllocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM.