From: Todd C. Miller Date: Fri, 9 Aug 1996 22:06:40 +0000 (+0000) Subject: added struct sudo_match X-Git-Tag: SUDO_1_5_0~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d4d6aebfcec15c001ebc7d67d0a53f817127fe1;p=sudo added struct sudo_match --- diff --git a/sudo.h b/sudo.h index 19e7d7102..f64d4d3e2 100644 --- a/sudo.h +++ b/sudo.h @@ -48,6 +48,7 @@ struct interface { * apply when parsing is done & can be * accessed by *_matches macros */ +#define MATCHSTACKSIZE (40) struct matchstack { int user; int cmnd; @@ -75,6 +76,19 @@ extern int top; #define runas_matches (match[top-1].runas) #define no_passwd (match[top-1].nopass) +/* + * Structure containing matches if "sudo -l" is used. + */ +struct sudo_match { + char *runas; + size_t runas_len; + size_t runas_size; + char *cmnd; + size_t cmnd_len; + size_t cmnd_size; + int nopasswd; +}; + /* * Maximum number of characters to log per entry. The syslogger * will log this much, after that, it truncates the log line.