Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:security_prepare_creds

Proto:int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
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  If rc Then Return rc
1559  rc = call_int_hook(cred_prepare, 0, new, old, gfp)
1560  If Value for the false possibility is greater at compile time(rc) Then security_cred_free(new)
1562  Return rc
Caller
NameDescribe
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