Return to doas.h CVS log | Up to [local] / src / usr.bin / doas |
File: [local] / src / usr.bin / doas / doas.h (download)
Revision 1.9, Fri Sep 2 18:12:30 2016 UTC (7 years, 9 months ago) by tedu
add support for the verified auth ioctls using 'persist' rules. ok deraadt henning |
/* $OpenBSD: doas.h,v 1.9 2016/09/02 18:12:30 tedu 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 **); char **prepenv(struct rule *); #define PERMIT 1 #define DENY 2 #define NOPASS 0x1 #define KEEPENV 0x2 #define PERSIST 0x4