函数逻辑报告 | 
Source Code:security\tomoyo\audit.c | 
Create Date:2022-07-27 21:02:26 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:moyo_print_header - Get header line of audit log.*@r: Pointer to "struct tomoyo_request_info".* Returns string representation.* This function uses kmalloc(), so caller must kfree() if this function* didn't return NULL.
函数原型:static char *tomoyo_print_header(struct tomoyo_request_info *r)
返回类型:char
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct tomoyo_request_info * | r | 
| 153 | gpid等于task_pid_nr(当前进程) | 
| 154 | obj等于For holding parameters specific to operations which deal files.* NULL if not dealing files. | 
| 155 | tomoyo_buffer_len等于4096 | 
| 160 | 如果非buffer则返回:NULL | 
| 179 | 如果非obj则转到:no_obj_info | 
| 182 | tomoyo_get_attributes(obj) | 
| 185 | 以i小于TOMOYO_MAX_PATH_STAT循环 | 
| 190 | 如果非 True if @stat[] is valid. [i]则继续下一循环 | 
| 192 | stat等于* Information on @path1, @path1's parent directory, @path2, @path2's * parent directory.[i] | 
| 195 | 如果i按位与1则 | 
| 204 | 继续下一循环 | 
| 224 | no_obj_info : | 
| 225 | 如果pos小于tomoyo_buffer_len减1则返回:buffer | 
| 227 | 释放内存 | 
| 228 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| tomoyo_init_log | moyo_init_log - Allocate buffer for audit logs | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |