6
#include <sys/resource.h>
14
#ifdef HAVE_CAPABILITIES
15
#include <sys/capability.h>
23
enum { FLAG_USER = 0x1,
25
FLAG_INITGROUPS = 0x4 };
28
#define has_flag(x, y) (((x)->sflags & (y)) == (y))
29
#define set_flag(x, y) {(x)->sflags |= (y);RL_PWARN("X%d", __LINE__);}
30
#define reset_flag(x, y) {(x)->sflags &= (~y);RL_PWARN("X%d", __LINE__);}
35
struct stringlist *port;
36
struct stringlist *interface;
48
struct numlist *rpcvers;
49
#ifdef HAVE_CAPABILITIES
53
rl_opcode_t opfixups [ ofp_max_fixups ];
54
int sflags; /* uid/gid flags */
56
int disabled; /* if parse error in service declaration */
57
int internal; /* if internal service */
59
rl_opcode_t run; /* opstream to hook onto listening socket */
61
void *filter; /* LSF program to attach to sockets */
62
int filterlen; /* length of above LSF program */
66
void numlist_add(struct numlist **, long);
67
void numlist_copy(struct numlist **, struct numlist *);
68
void numlist_free(struct numlist *);
72
struct stringlist *next;
75
void stringlist_add(struct stringlist **, char *);
76
void stringlist_copy(struct stringlist **, struct stringlist *);
77
void stringlist_free(struct stringlist *);
85
void builduserdata(struct userdata **, char *);
86
void clearuserdata(struct userdata **);
87
void newuserdata(struct userdata **);
88
void userdata_copy(struct userdata **, struct userdata *);