Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int lsm_cred_alloc(struct cred *cred, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct cred *cred
gfp_tgfp
495  If lbs_cred == 0 Then
496  subjective LSM security = NULL
497  Return 0
500  subjective LSM security = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
501  If ( subjective LSM security == NULL) Then Return -ENOMEM
503  Return 0
Caller
NameDescribe
lsm_early_cred
security_cred_alloc_blank
security_prepare_creds