Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\security.c Create Date:2022-07-28 18:39:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:security_cred_alloc_blank

Proto:int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
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  If rc Then Return 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  If Value for the false possibility is greater at compile time(rc) Then security_cred_free(cred)
1534  Return rc