函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 u8 | profile | |
const u8 | index |
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". |
980 | 如果mode恒等于TOMOYO_CONFIG_USE_DEFAULT则mode等于config[Mapping table from "enum tomoyo_mac_index" to* "enum tomoyo_mac_category_index".[index] + TOMOYO_MAX_MAC_INDEX] |
983 | 如果mode恒等于TOMOYO_CONFIG_USE_DEFAULT则mode等于default_config |
985 | 返回:mode按位与3 |
名称 | 描述 |
---|---|
tomoyo_path_permission | moyo_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_permission | moyo_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_info | moyo_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_environ | moyo_environ - Check permission for environment variable names.*@ee: Pointer to "struct tomoyo_execve".* Returns 0 on success, negative value otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |