函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:05:50 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_supervisor - Ask for the supervisor's decision
函数原型:int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_request_info * | r | |
const char * | fmt |
2065 | struct tomoyo_query entry = {} |
2066 | bool quota_exceeded = false |
2076 | 如果granted则返回:0 |
2078 | 如果One of tomoyo_mode_index . 则moyo_update_stat - Update statistic counters.*@index: Index for policy type.* Returns nothing. |
2083 | 如果atomic_read( & Number of "struct file" referring /sys/kernel/security/tomoyo/query* interface.)则退出 |
2085 | 转到:out |
2087 | error等于0 |
2092 | 默认 |
2093 | 返回:0 |
2102 | 如果非error则 |
2104 | 转到:out |
2106 | len等于moyo_round2 - Round up to power of 2 for calculating memory usage.*@size: Size to be rounded up.* Returns @size.* Since SLOB does not round up, this function simply returns @size. |
2108 | 加自旋锁 |
2112 | quota_exceeded = true |
2113 | 否则 |
2119 | 自旋锁解锁 |
2120 | 如果quota_exceeded则转到:out |
2129 | timer自加 |
2131 | 加自旋锁 |
2132 | 删除链表项 |
2133 | tomoyo_memory_used[TOMOYO_MEMORY_QUERY]减等于len |
2134 | 自旋锁解锁 |
2138 | retry自加 |
2139 | 退出 |
2144 | 默认 |
2146 | 退出 |
2148 | out : |
2149 | 释放内存 |
2150 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_audit_env_log | moyo_audit_env_log - Audit environment variable name log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_path_log | moyo_audit_path_log - Audit path request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_path2_log | moyo_audit_path2_log - Audit path/path request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_mkdev_log | moyo_audit_mkdev_log - Audit path/number/number/number request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_path_number_log | moyo_audit_path_number_log - Audit path/number request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_mount_log | moyo_audit_mount_log - Audit mount log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise. |
tomoyo_audit_net_log | moyo_audit_net_log - Audit network log.*@r: Pointer to "struct tomoyo_request_info".*@family: Name of socket family ("inet" or "unix").*@protocol: Name of protocol in @family.*@operation: Name of socket operation.*@address: Name of address. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |