函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_profile - Find a profile.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number to find.* Returns pointer to "struct tomoyo_profile".

函数原型:struct tomoyo_profile *tomoyo_profile(const struct tomoyo_policy_namespace *ns, const u8 profile)

返回类型:struct tomoyo_profile

参数:

类型参数名称
const struct tomoyo_policy_namespace *ns
const u8profile
538  ptr等于 Profile table. Memory is allocated as needed. [profile]
540  如果非ptrptr等于tomoyo_null_profile
542  返回:ptr
调用者
名称描述
tomoyo_get_modemoyo_get_mode - Get MAC mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.* Returns mode.
tomoyo_domain_quota_is_okmoyo_domain_quota_is_ok - Check for domain's quota.*@r: Pointer to "struct tomoyo_request_info".* Returns true if the domain is not exceeded quota, false otherwise.* Caller holds tomoyo_read_lock().