]> git.armaanb.net Git - opendoas.git/blob - doas.h
import doas. still subject to changes, large and small.
[opendoas.git] / doas.h
1
2 struct rule {
3         int action;
4         int options;
5         const char *ident;
6         const char *target;
7         const char *cmd;
8         const char **envlist;
9 };
10
11 extern struct rule **rules;
12 extern int nrules, maxrules;
13
14 size_t arraylen(const char **);
15
16 #define PERMIT  1
17 #define DENY    2
18
19 #define NOPASS          0x1
20 #define KEEPENV         0x2