Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepare a new set of credentials for modification

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

Type:int

Parameter:

TypeParameterName
struct cred *new
const struct cred *old
gfp_tgfp
3906  old_tsec = selinux_cred(old)
3907  tsec = selinux_cred(new)
3909  tsec = old_tsec
3910  Return 0