函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\tomoyo.c Create Date:2022-07-27 21:15:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static int tomoyo_cred_prepare(struct cred *new, const struct cred *old, gfp_t gfp)

返回类型:int

参数:

类型参数名称
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  如果old_domain_info且非in_execve
43  atomic_dec( & Number of referring tasks. )
44  domain_info等于old_domain_info
45  old_domain_info = NULL
47  返回:0