opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git

doas.h (388B)


      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