| Function report | 
| Source Code: kernel\auditsc.c | Create Date:2022-07-28 11:27:50 | 
| Last Modify:2020-03-17 16:31:21 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__audit_syscall_exit - deallocate audit context after a system call*@success: success value of the syscall*@return_code: return value of the syscall* Tear down after system call
Proto:void __audit_syscall_exit(int success, long return_code)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | success | |
| long | return_code | 
| 1678 | context = audit_context() | 
| 1679 | If Not context Then Return | 
| 1682 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then audit_kill_trees(context) | 
| 1685 | If Not must be the first element && 1 if task is in a syscall Then | 
| 1686 | If success Then urn code is valid = AUDITSC_SUCCESS | 
| 1688 | Else urn code is valid = AUDITSC_FAILURE | 
| 1706 | Else syscall return code = return_code | 
| 1712 | If current_state == AUDIT_RECORD_CONTEXT Then audit_log_exit() | 
| 1716 | 1 if task is in a syscall = 0 | 
| 1717 | prio = If state == AUDIT_RECORD_CONTEXT Then ~0ULL Else 0 | 
| 1719 | audit_free_module(context) | 
| 1720 | audit_free_names(context) | 
| 1721 | unroll_tree_refs(context, NULL, 0) | 
| 1722 | audit_free_aux(context) | 
| 1723 | aux = NULL | 
| 1724 | aux_pids = NULL | 
| 1725 | target_pid = 0 | 
| 1726 | target_sid = 0 | 
| 1727 | sockaddr_len = 0 | 
| 1728 | type = 0 | 
| 1729 | fds[0] = -1 | 
| 1730 | If state != AUDIT_RECORD_CONTEXT Then | 
| 1732 | key for rule that triggered record = NULL | 
| 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 |