函数逻辑报告 | 
Source Code:security\tomoyo\audit.c | 
Create Date:2022-07-27 21:02:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:moyo_print_bprm - Print "struct linux_binprm" for auditing
函数原型:static char *tomoyo_print_bprm(struct linux_binprm *bprm, struct tomoyo_page_dump *dump)
返回类型:char
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct linux_binprm * | bprm | |
| struct tomoyo_page_dump * | dump | 
| 25 | tomoyo_buffer_len等于4096乘2 | 
| 32 | argv_count等于argc | 
| 33 | envp_count等于envc | 
| 34 | bool truncated = false | 
| 36 | 如果非buffer则返回:NULL | 
| 38 | len等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@ | 
| 40 | 如果非argv_count则 | 
| 44 | last_start等于cp | 
| 46 | 如果非tomoyo_dump_page(bprm, pos, dump)则转到:out | 
| 54 | 如果cp恒等于last_start则cp自加等于'"' | 
| 56 | 如果cp大于等于buffer加tomoyo_buffer_len减32则 | 
| 58 | truncated = true | 
| 59 | 否则如果c恒等于'\\'则 | 
| 64 | 否则如果非c则 | 
| 68 | 否则 | 
| 74 | 如果c则继续下一循环 | 
| 76 | 如果argv_count则 | 
| 77 | 如果argv_count先自减恒等于0则 | 
| 88 | 否则如果envp_count则 | 
| 89 | 如果envp_count先自减恒等于0则 | 
| 97 | 如果非argv_count且非envp_count则退出 | 
| 100 | offset等于0 | 
| 102 | cp自加等于'}' | 
| 103 | cp等于'\0' | 
| 104 | 返回:buffer | 
| 105 | out : | 
| 108 | 返回:buffer | 
| 名称 | 描述 | 
|---|---|
| tomoyo_init_log | moyo_init_log - Allocate buffer for audit logs | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |