]> granicus.if.org Git - sudo/commitdiff
added struct sudo_match
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Aug 1996 22:06:40 +0000 (22:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Aug 1996 22:06:40 +0000 (22:06 +0000)
sudo.h

diff --git a/sudo.h b/sudo.h
index 19e7d71024d826bed55295c06fa8627e57abfdb4..f64d4d3e2896812e704028fc592adf5131de63ae 100644 (file)
--- 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.