mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Allow multiple accept/reject messages during a logsrv conversation.
The log server now advertises a subcommands flag if it supports logging subcommands (e.g. commands run from a sudo-spawned program like a shell). The client should only log additional commands during a session if this flag is set in the ServerHello message.
This commit is contained in:
@@ -429,10 +429,14 @@ struct _ServerHello
|
||||
*/
|
||||
size_t n_servers;
|
||||
char **servers;
|
||||
/*
|
||||
* flag: server supports sub-commands
|
||||
*/
|
||||
protobuf_c_boolean subcommands;
|
||||
};
|
||||
#define SERVER_HELLO__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&server_hello__descriptor) \
|
||||
, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL }
|
||||
, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 }
|
||||
|
||||
|
||||
/* ClientMessage methods */
|
||||
|
Reference in New Issue
Block a user