Add log_format sudoers setting to select sudo or json format logs.

Defaults to sudo-format logs.
This commit is contained in:
Todd C. Miller
2020-10-27 15:26:02 -06:00
parent 6bc729aa36
commit 28d6771d24
7 changed files with 132 additions and 19 deletions

View File

@@ -260,6 +260,8 @@
#define def_runcwd (sudo_defs_table[I_RUNCWD].sd_un.str)
#define I_RUNCHROOT 129
#define def_runchroot (sudo_defs_table[I_RUNCHROOT].sd_un.str)
#define I_LOG_FORMAT 130
#define def_log_format (sudo_defs_table[I_LOG_FORMAT].sd_un.tuple)
enum def_tuple {
never,
@@ -271,5 +273,7 @@ enum def_tuple {
global,
ppid,
tty,
kernel
kernel,
sudo,
json
};