version 1.7, 2016/06/16 17:40:30 |
version 1.8, 2016/06/19 19:29:43 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
|
|
#include <sys/tree.h> |
|
|
|
struct envnode { |
|
RB_ENTRY(envnode) node; |
|
const char *key; |
|
const char *value; |
|
}; |
|
|
|
struct env { |
|
RB_HEAD(envtree, envnode) root; |
|
u_int count; |
|
}; |
|
|
|
RB_PROTOTYPE(envtree, envnode, node, envcmp) |
|
|
|
struct rule { |
struct rule { |
int action; |
int action; |
int options; |
int options; |
|
|
|
|
size_t arraylen(const char **); |
size_t arraylen(const char **); |
|
|
struct env *createenv(char **); |
char **prepenv(struct rule *); |
struct env *filterenv(struct env *, struct rule *); |
|
char **flattenenv(struct env *); |
|
|
|
#define PERMIT 1 |
#define PERMIT 1 |
#define DENY 2 |
#define DENY 2 |