函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_task - Get "struct tomoyo_task" for specified thread.*@task - Pointer to "struct task_struct".* Returns pointer to "struct tomoyo_task" for specified thread.

函数原型:static inline struct tomoyo_task *tomoyo_task(struct task_struct *task)

返回类型:struct tomoyo_task

参数:

类型参数名称
struct task_struct *task
1222  返回: Used by LSM modules for access restriction: lbs_task
调用者
名称描述
tomoyo_select_domainmoyo_select_domain - Parse select command.*@head: Pointer to "struct tomoyo_io_buffer".*@data: String to parse.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().
tomoyo_read_pidmoyo_read_pid - Get domainname of the specified PID
tomoyo_find_next_domainmoyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_selfmoyo_write_self - write() for /sys/kernel/security/tomoyo/self_domain interface
tomoyo_domainmoyo_domain - Get "struct tomoyo_domain_info" for current thread.* Returns pointer to "struct tomoyo_domain_info" for current thread.
tomoyo_cred_preparemoyo_cred_prepare - Target for security_prepare_creds().*@new: Pointer to "struct cred".*@old: Pointer to "struct cred".*@gfp: Memory allocation flags.* Returns 0.
tomoyo_bprm_committed_credsmoyo_bprm_committed_creds - Target for security_bprm_committed_creds().*@bprm: Pointer to "struct linux_binprm".
tomoyo_bprm_check_securitymoyo_bprm_check_security - Target for security_bprm_check().*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.
tomoyo_task_allocmoyo_task_alloc - Target for security_task_alloc().*@task: Pointer to "struct task_struct".*@flags: clone() flags.* Returns 0.
tomoyo_task_freemoyo_task_free - Target for security_task_free().*@task: Pointer to "struct task_struct".
tomoyo_initmoyo_init - Register TOMOYO Linux as a LSM module.* Returns 0.