Function report |
Source Code:kernel\auditsc.c |
Create Date:2022-07-28 11:27:20 |
| Last Modify:2020-03-17 16:31:21 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:audit_log_execve_info
Proto:static void audit_log_execve_info(struct audit_context *context, struct audit_buffer **ab)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct audit_context * | context | |
| struct audit_buffer ** | ab |
| 994 | len_abuf = 0 |
| 1013 | WARN_ON_ONCE( execve audit message should be longer than this (userspace limits),* see the note near the top of audit_log_execve_info() about this value > 7500) |
| 1014 | len_max = execve audit message should be longer than this (userspace limits),* see the note near the top of audit_log_execve_info() about this value |
| 1017 | buf_head = Allocation memory |
| 1018 | If Not buf_head Then |
| 1019 | audit_panic("out of memory for argv string") |
| 1020 | Return |
| 1027 | len_buf = 0 |
| 1028 | len_full = 0 |
| 1029 | require_data = true |
| 1030 | encode = false |
| 1031 | iter = 0 |
| 1032 | arg = 0 |
| 1033 | Do |
| 1041 | If len_full == 0 Then len_full = Get the size of a string in user space - 1 |
| 1045 | If require_data Then |
| 1057 | send_sig(SIGKILL, current process, 0) |
| 1058 | Go to out |
| 1069 | Else |
| 1088 | If len_buf >= 0 Then |
| 1103 | len_tmp = 0 |
| 1104 | If require_data || iter > 0 || len_abuf + size of abuf > len_rem Then |
| 1106 | If iter == 0 Then |
| 1126 | If encode Then |
| 1132 | Else |
| 1146 | If len_buf == 0 && Not require_data Then |
| 1157 | out : |
| Name | Describe |
|---|---|
| show_special |
| 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 |