Add maxseq sudoers option to limit the max number of I/O log files.

This commit is contained in:
Todd C. Miller
2013-02-18 15:06:23 -05:00
parent 618871a331
commit b9159ecb26
10 changed files with 191 additions and 123 deletions

View File

@@ -361,6 +361,9 @@ sudoers_policy_exec_setup(char *argv[], char *envp[], mode_t cmnd_umask,
if (def_compress_io) {
command_info[info_len++] = estrdup("iolog_compress=true");
}
if (def_maxseq) {
easprintf(&command_info[info_len++], "maxseq=%u", def_maxseq);
}
}
if (ISSET(sudo_mode, MODE_EDIT))
command_info[info_len++] = estrdup("sudoedit=true");