]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
the sudo timeout was 5 minutes i believe, so we'll match that.
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index 8576e41668787a6faa3fac5fd7614663cd7f385a..062c38725583446a49db2668af229f443a103fc6 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -1,21 +1,25 @@
 /* $OpenBSD$ */
-
 struct rule {
        int action;
        int options;
        const char *ident;
        const char *target;
        const char *cmd;
+       const char **cmdargs;
        const char **envlist;
 };
 
 extern struct rule **rules;
 extern int nrules, maxrules;
+extern int parse_errors;
 
 size_t arraylen(const char **);
 
+char **prepenv(struct rule *);
+
 #define PERMIT 1
 #define DENY   2
 
 #define NOPASS         0x1
 #define KEEPENV                0x2
+#define PERSIST                0x4