函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_get_mode - Get MAC mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.* Returns mode.

函数原型:int tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile, const u8 index)

返回类型:int

参数:

类型参数名称
const struct tomoyo_policy_namespace *ns
const u8profile
const u8index
976  如果非Has /sbin/init started? 则返回:TOMOYO_CONFIG_DISABLED
978  p等于moyo_profile - Find a profile.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number to find.* Returns pointer to "struct tomoyo_profile".
979  mode等于config[index]
980  如果mode恒等于TOMOYO_CONFIG_USE_DEFAULTmode等于config[Mapping table from "enum tomoyo_mac_index" to* "enum tomoyo_mac_category_index".[index] + TOMOYO_MAX_MAC_INDEX]
983  如果mode恒等于TOMOYO_CONFIG_USE_DEFAULTmode等于default_config
985  返回:mode按位与3
调用者
名称描述
tomoyo_path_permissionmoyo_path_permission - Check permission for single path operation.*@r: Pointer to "struct tomoyo_request_info".*@operation: Type of operation.*@filename: Filename to check.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_execute_permissionmoyo_execute_permission - Check permission for execute operation.*@r: Pointer to "struct tomoyo_request_info".*@filename: Filename to check.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_init_request_infomoyo_init_request_info - Initialize "struct tomoyo_request_info" members.*@r: Pointer to "struct tomoyo_request_info" to initialize.*@domain: Pointer to "struct tomoyo_domain_info". NULL for tomoyo_domain().*@index: Index number of functionality.
tomoyo_environmoyo_environ - Check permission for environment variable names.*@ee: Pointer to "struct tomoyo_execve".* Returns 0 on success, negative value otherwise.