Function report |
Source Code:security\tomoyo\audit.c |
Create Date:2022-07-28 19:33:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:void tomoyo_write_log2(struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tomoyo_request_info * | r | |
| int | len | |
| const char * | fmt | |
| va_list | args |
| 370 | bool quota_exceeded = false |
| 378 | entry = 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). |
| 379 | If Not entry Then |
| 384 | 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. |
| 389 | size = 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. |
| 394 | quota_exceeded = true |
| 395 | Else |
| 401 | If quota_exceeded Then |
| 407 | out : |
| 408 | Return |
| Name | Describe |
|---|---|
| tomoyo_write_log | moyo_write_log - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@fmt: The printf()'s format string, followed by parameters.* 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 |