函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_init_policy_namespace - Initialize namespace.*@ns: Pointer to "struct tomoyo_policy_namespace".* Returns nothing.

函数原型:void tomoyo_init_policy_namespace(struct tomoyo_policy_namespace *ns)

返回类型:void

参数:

类型参数名称
struct tomoyo_policy_namespace *ns
351 idx小于Group number is an integer between 0 and 255. 循环初始化链表头
353 idx小于TOMOYO_MAX_GROUP循环初始化链表头
355 idx小于TOMOYO_MAX_POLICY循环初始化链表头
357  Profile version. Currently only 20150505 is defined. 等于20150505
358  True if namespace other than tomoyo_kernel_namespace is defined. 等于非链表为空
359  添加RCU链表项
调用者
名称描述
tomoyo_assign_namespacemoyo_assign_namespace - Create a new namespace.*@domainname: Name of namespace to create.* Returns pointer to "struct tomoyo_policy_namespace" on success,* NULL otherwise.* Caller holds tomoyo_read_lock().
tomoyo_mm_initmoyo_mm_init - Initialize mm related code.