Return to doas.h CVS log | Up to [local] / src / usr.bin / doas |
File: [local] / src / usr.bin / doas / doas.h (download)
Revision 1.5, Sun Jun 5 00:46:34 2016 UTC (8 years ago) by djm
add a doas.conf setenv directive that allows setting environment variables explicitly and by copying existing environment variables of a different name. E.g. permit nopass setenv { PS1=$SUDO_PS1 FOO=bar } keepenv :wheel ok tedu@ benno@ |
/* $OpenBSD: doas.h,v 1.5 2016/06/05 00:46:34 djm Exp $ */ struct rule { int action; int options; const char *ident; const char *target; const char *cmd; const char **cmdargs; const char **envlist; const char **setenvlist; }; 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 #define SETENV 0x4