Function report |
Source Code:security\tomoyo\audit.c |
Create Date:2022-07-28 19:33:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_init_log - Allocate buffer for audit logs
Proto:char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not header Then Return 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. |
275 | buf = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
278 | len-- |
280 | If realpath Then |
291 | out : |
295 | Return buf |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |