summaryrefslogtreecommitdiff
path: root/usr.bin/doas/doas.h
blob: 1b7f37515aca6119af49db4d85c0ca72ae2f8e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* $OpenBSD: doas.h,v 1.4 2015/07/24 06:36:42 zhuk Exp $ */

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 **);

#define PERMIT	1
#define DENY	2

#define NOPASS		0x1
#define KEEPENV		0x2