函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_task_smack - initialize a task security blob*@tsp: blob to initialize*@task: a pointer to the Smack label for the running task*@forked: a pointer to the Smack label for the forked task

函数原型:static void init_task_smack(struct task_smack *tsp, struct smack_known *task, struct smack_known *forked)

返回类型:void

参数:

类型参数名称
struct task_smack *tsp
struct smack_known *task
struct smack_known *forked
332  label for access control 等于task
333  label when forked 等于forked
334  初始化链表头
335  初始化链表头
336  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock for the rules )
调用者
名称描述
smack_cred_alloc_blanksmack_cred_alloc_blank - "allocate" blank task-level security credentials*@cred: the new credentials*@gfp: the atomicity of any memory allocations* Prepare a blank set of credentials for modification
smack_cred_preparesmack_cred_prepare - prepare new set of credentials for modification*@new: the new credentials*@old: the original credentials*@gfp: the atomicity of any memory allocations* Prepare a new set of credentials for modification.
smack_initsmack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory