Return to doas.h CVS log | Up to [local] / src / usr.bin / doas |
File: [local] / src / usr.bin / doas / doas.h (download)
Revision 1.3, Tue Jul 21 11:04:06 2015 UTC (8 years, 10 months ago) by zhuk
Add argument matching support to doas. Input and generic support from many. Final okay from tedu@. |
/* $OpenBSD: doas.h,v 1.3 2015/07/21 11:04:06 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; size_t arraylen(const char **); #define PERMIT 1 #define DENY 2 #define NOPASS 0x1 #define KEEPENV 0x2