函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:security_prepare_creds

函数原型:int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct cred *new
const struct cred *old
gfp_tgfp
1554  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.
1556  如果rc则返回:rc
1559  rc等于call_int_hook(cred_prepare, 0, new, old, gfp)
1560  如果此条件成立可能性小(为编译器优化)(rc)则security_cred_free(new)
1562  返回:rc
调用者
名称描述
prepare_kernel_credprepare_kernel_cred - Prepare a set of credentials for a kernel service*@daemon: A userspace daemon to be used as a reference* Prepare a set of credentials for a kernel service
prepare_credsprepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification