mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Add info_msgs to AlertMessage and populate it.
This lets us log eventlog info along with the alert if it is available.
This commit is contained in:
@@ -270,13 +270,18 @@ struct _AlertMessage
|
||||
*/
|
||||
TimeSpec *alert_time;
|
||||
/*
|
||||
* description of policy violation
|
||||
* policy alert error string
|
||||
*/
|
||||
char *reason;
|
||||
/*
|
||||
* optional key,value event log data
|
||||
*/
|
||||
size_t n_info_msgs;
|
||||
InfoMessage **info_msgs;
|
||||
};
|
||||
#define ALERT_MESSAGE__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&alert_message__descriptor) \
|
||||
, NULL, (char *)protobuf_c_empty_string }
|
||||
, NULL, (char *)protobuf_c_empty_string, 0,NULL }
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user