2
0
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:
Todd C. Miller
2021-08-09 15:50:25 -06:00
parent 1ae9954c63
commit 9d776b4e7b
6 changed files with 69 additions and 10 deletions

View File

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