函数逻辑报告 |
Source Code:security\tomoyo\audit.c |
Create Date:2022-07-27 21:02:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_init_log - Allocate buffer for audit logs
函数原型:char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
返回类型:char
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_request_info * | r | |
int | len | |
const char * | fmt | |
va_list | args |
247 | char * buf = NULL |
248 | char * bprm_info = NULL |
249 | const char * header = NULL |
250 | char * realpath = NULL |
251 | const char * symlink = NULL |
253 | domainname等于name |
256 | 如果非header则返回:NULL |
259 | len加等于strlen - Find the length of a string*@s: The string to be sized加strlen - Find the length of a string*@s: The string to be sized加10 |
263 | realpath等于tomoyo_realpath_from_path( & f_path) |
274 | 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. |
278 | len自减 |
280 | 如果realpath则 |
291 | out : |
292 | 释放内存 |
293 | 释放内存 |
294 | 释放内存 |
295 | 返回:buf |
名称 | 描述 |
---|---|
tomoyo_write_log2 | moyo_write_log2 - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@len: Buffer size needed for @fmt and @args.*@fmt: The printf()'s format string.*@args: va_list structure for @fmt.* Returns nothing. |
tomoyo_supervisor | moyo_supervisor - Ask for the supervisor's decision |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |