Annotation of src/usr.bin/doas/doas.h, Revision 1.4
1.4 ! zhuk 1: /* $OpenBSD: doas.h,v 1.3 2015/07/21 11:04:06 zhuk Exp $ */
1.1 tedu 2:
3: struct rule {
4: int action;
5: int options;
6: const char *ident;
7: const char *target;
8: const char *cmd;
1.3 zhuk 9: const char **cmdargs;
1.1 tedu 10: const char **envlist;
11: };
12:
13: extern struct rule **rules;
14: extern int nrules, maxrules;
1.4 ! zhuk 15: extern int parse_errors;
1.1 tedu 16:
17: size_t arraylen(const char **);
18:
19: #define PERMIT 1
20: #define DENY 2
21:
22: #define NOPASS 0x1
23: #define KEEPENV 0x2