]> git.armaanb.net Git - opendoas.git/blob - doas.h
add support for the verified auth ioctls using 'persist' rules. ok deraadt henning
[opendoas.git] / doas.h
1 /* $OpenBSD$ */
2 struct rule {
3         int action;
4         int options;
5         const char *ident;
6         const char *target;
7         const char *cmd;
8         const char **cmdargs;
9         const char **envlist;
10 };
11
12 extern struct rule **rules;
13 extern int nrules, maxrules;
14 extern int parse_errors;
15
16 size_t arraylen(const char **);
17
18 char **prepenv(struct rule *);
19
20 #define PERMIT  1
21 #define DENY    2
22
23 #define NOPASS          0x1
24 #define KEEPENV         0x2
25 #define PERSIST         0x4