Annotation of src/usr.bin/doas/doas.h, Revision 1.6
1.5 djm 1: /* $OpenBSD: doas.h,v 1.4 2015/07/24 06:36:42 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