Function report |
Source Code:security\tomoyo\audit.c |
Create Date:2022-07-28 19:33:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static char *tomoyo_print_header(struct tomoyo_request_info *r)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_request_info * | r |
153 | gpid = task_pid_nr(current process) |
154 | obj = For holding parameters specific to operations which deal files.* NULL if not dealing files. |
155 | tomoyo_buffer_len = 4096 |
156 | buffer = Allocation memory |
160 | If Not buffer Then Return NULL |
179 | If Not obj Then Go to no_obj_info |
182 | tomoyo_get_attributes(obj) |
185 | When i < TOMOYO_MAX_PATH_STAT cycle |
190 | If Not True if @stat[] is valid. [i] Then Continue |
192 | stat = * Information on @path1, @path1's parent directory, @path2, @path2's * parent directory.[i] |
195 | If i & 1 Then |
204 | Continue |
224 | no_obj_info : |
225 | If pos < tomoyo_buffer_len - 1 Then Return buffer |
228 | Return NULL |
Name | Describe |
---|---|
tomoyo_init_log | moyo_init_log - Allocate buffer for audit logs |
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 |