Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_cred_prepare - Target for security_prepare_creds().*@new: Pointer to "struct cred".*@old: Pointer to "struct cred".*@gfp: Memory allocation flags.* Returns 0.

Proto:static int tomoyo_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
40  s = moyo_task - Get "struct tomoyo_task" for specified thread.*@task - Pointer to "struct task_struct".* Returns pointer to "struct tomoyo_task" for specified thread.
42  If old_domain_info && Not in_execve Then
43  atomic_dec( & Number of referring tasks. )
44  domain_info = old_domain_info
45  old_domain_info = NULL
47  Return 0