yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
agt_audit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_agt_audit
13#define _H_agt_audit
14/* FILE: agt_audit.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
27/*********************************************************************
28* *
29* C H A N G E H I S T O R Y *
30* *
31*********************************************************************
32
33date init comment
34----------------------------------------------------------------------
3501-sep-18 abb Begun.
36*/
37
38
39#ifndef _H_rpc
40#include "rpc.h"
41#endif
42
43#ifndef _H_ses
44#include "ses.h"
45#endif
46
47#ifndef _H_status_enum
48#include "status_enum.h"
49#endif
50
51#ifndef _H_val
52#include "val.h"
53#endif
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59
60/********************************************************************
61* *
62* C O N S T A N T S *
63* *
64*********************************************************************/
65
66
67/********************************************************************
68* *
69* T Y P E S *
70* *
71*********************************************************************/
72
73
74/********************************************************************
75* *
76* F U N C T I O N S *
77* *
78*********************************************************************/
79
80
110extern void
112 ses_cb_t *scb,
113 rpc_msg_t *msg,
114 val_value_t *curnode_clone,
115 val_value_t *newnode,
116 val_value_t *curnode);
117
118
127extern void
129 rpc_msg_t *msg,
130 const xmlChar *sourcetype,
131 const xmlChar *sourcename);
132
133
139extern void
141
142
150extern void
152 ses_term_reason_t termreason,
153 ses_id_t killedby);
154
155
163extern void
164 agt_audit_handle_acm_write_error (const xmlChar *user,
165 val_value_t *val,
166 op_editop_t editop);
167
168
176extern void
177 agt_audit_handle_acm_exec_error (const xmlChar *user,
178 const xmlChar *modname,
179 const xmlChar *rpcname);
180
181
188extern void
190 rpc_msg_t *msg);
191
192
200extern uint32
202 status_t *res);
203
204
210extern boolean
212
213
219extern boolean
221
222
228extern boolean
230
231
237extern boolean
239
240
246extern boolean
248
249
255extern boolean
257
258
264extern boolean
266
267
273extern boolean
275
276
282extern boolean
284
285
291extern boolean
293
297#ifdef __cplusplus
298} /* end extern 'C' */
299#endif
300
301#endif /* _H_agt_audit */
void agt_audit_handle_end_session(ses_cb_t *scb, ses_term_reason_t termreason, ses_id_t killedby)
Generate an end (client or control) session event if enabled.
Definition: agt_audit.c:565
void agt_audit_handle_update_startup(ses_cb_t *scb, rpc_msg_t *msg, const xmlChar *sourcetype, const xmlChar *sourcename)
Create and store an update-startup audit record, if needed.
Definition: agt_audit.c:371
boolean agt_audit_log_edit_candidate(void)
Check if <candidate> edit events are being collected.
Definition: agt_audit.c:1017
boolean agt_audit_log_nacm_write_error(void)
Check if NACM write-access errors are being collected.
Definition: agt_audit.c:1097
void agt_audit_handle_acm_exec_error(const xmlChar *user, const xmlChar *modname, const xmlChar *rpcname)
Generate an acm-exec-error event if enabled.
Definition: agt_audit.c:727
void agt_audit_handle_rpc_summary(ses_cb_t *scb, rpc_msg_t *msg)
Create and store an rpc-summary event audit record, if needed.
Definition: agt_audit.c:784
boolean agt_audit_log_client_session(void)
Check if client session events are being collected.
Definition: agt_audit.c:1065
boolean agt_audit_log_edit_data(void)
Check if edit-data events are being collected.
Definition: agt_audit.c:1145
void agt_audit_handle_edit_record(op_editop_t editop, ses_cb_t *scb, rpc_msg_t *msg, val_value_t *curnode_clone, val_value_t *newnode, val_value_t *curnode)
Create and store a change-audit record, if needed.
Definition: agt_audit.c:82
void agt_audit_handle_start_session(ses_cb_t *scb)
Generate a start (client or control) session event if enabled.
Definition: agt_audit.c:483
boolean agt_audit_log_control_session(void)
Check if control session events are being collected.
Definition: agt_audit.c:1081
boolean agt_audit_log_rpc_summary(void)
Check if RPC summary events are being collected.
Definition: agt_audit.c:1129
void agt_audit_handle_acm_write_error(const xmlChar *user, val_value_t *val, op_editop_t editop)
Generate an acm-write-error event if enabled.
Definition: agt_audit.c:651
boolean agt_audit_log_rpc_error(void)
Check if rpc-error events are being collected.
Definition: agt_audit.c:1162
boolean agt_audit_log_nacm_exec_error(void)
Check if NACM exec-access errors are being collected.
Definition: agt_audit.c:1113
boolean agt_audit_log_edit_running(void)
Check if <running> edit events are being collected.
Definition: agt_audit.c:1033
boolean agt_audit_log_update_startup(void)
Check if <startup> update events are being collected.
Definition: agt_audit.c:1049
uint32 agt_audit_cvt_log_events(val_value_t *val, status_t *res)
Get the binary bits from the YANG bits value.
Definition: agt_audit.c:953
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
status_t
global error return code
Definition: status_enum.h:210
ses_term_reason_t
Session Termination reason.
Definition: ses.h:417
uint32 ses_id_t
Session ID.
Definition: ses.h:335
NETCONF protocol remote procedure call common definitions.
NETCONF Session Common definitions module.
global error status code enumerations
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:181
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:911
Value Node Basic Support.