2
0
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:
Todd C. Miller
2020-11-09 17:15:11 -07:00
parent 62525dcc94
commit 9779009fae
9 changed files with 87 additions and 25 deletions

View File

@@ -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 }
/*