From 8d4d6aebfcec15c001ebc7d67d0a53f817127fe1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 9 Aug 1996 22:06:40 +0000 Subject: [PATCH] added struct sudo_match --- sudo.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- 2.40.0