~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to data.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2010-03-20 18:03:45 UTC
  • mfrom: (2.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320180345-x1srfbe2tg00ezsf
Tags: 0.7-1
* New upstream version.
* Recommend rsyslog instead of sysklogd (closes: #526922).
* update-inetd:
  + add support for enabling, disabling and removing entries;
  + use ucf for managing generated files;
  + ignore ucf files in rlinetd.conf;
  + make appropriate changes in  postinst and postrm scripts.
* Set debhelper compat level to 7
* Standards-Version: 3.8.4 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef H_DATA
2
 
#define H_DATA
3
 
 
4
 
#include <sys/time.h>
5
 
#include <sys/types.h>
6
 
#include <sys/resource.h>
7
 
 
8
 
#include <config.h>
9
 
 
10
 
#include "bytecode.h"
11
 
#include "rlinetd.h"
12
 
 
13
 
#ifdef HAVE_CAPABILITIES
14
 
#include <sys/capability.h>
15
 
#endif
16
 
 
17
 
struct numlist {
18
 
        long num;
19
 
        struct numlist *next;
20
 
};
21
 
 
22
 
struct service {
23
 
        struct stringlist *port;
24
 
        struct stringlist *interface;
25
 
        char *name;
26
 
        int family;
27
 
        int socktype;
28
 
        int proto;
29
 
        char *protoname;
30
 
        int backlog;
31
 
        int limit;
32
 
        int wait;
33
 
        struct rlimit r;
34
 
        char *rpcname;
35
 
        long rpcnum;
36
 
        struct numlist *rpcvers;
37
 
#ifdef HAVE_CAPABILITIES
38
 
        cap_t caps;
39
 
#endif
40
 
 
41
 
        rl_opcode_t iname;      /* stringtab for service name */
42
 
        rl_opcode_t exec;       /* stringtab for program to exec */
43
 
        rl_opcode_t parent;     /* oplist for parent to exec post-fork */
44
 
        rl_opcode_t iuser;      /* stringtab for username */
45
 
        
46
 
        uid_t setuid;           /* user id */
47
 
        gid_t supgid;           /* supplementary groupid for initgroups */
48
 
        gid_t setgid;           /* primary group */
49
 
        int sgid;               /* true if an OP_SGID is in the opstream */
50
 
        
51
 
        int disabled;           /* if parse error in service declaration */
52
 
        int internal;           /* if internal service */
53
 
 
54
 
        rl_opcode_t run;        /* opstream to hook onto listening socket */
55
 
        rl_opcode_t onexit;     /* opstream to run when child exits */
56
 
#ifdef HAVE_NET_BPF_H
57
 
        void *filter;                                                                   /* LSF program to attach to sockets */
58
 
        int filterlen;                                                          /* length of above LSF program */
59
 
#endif  
60
 
};
61
 
 
62
 
void numlist_add(struct numlist **, long);
63
 
void numlist_copy(struct numlist **, struct numlist *);
64
 
void numlist_free(struct numlist *);
65
 
 
66
 
struct stringlist {
67
 
        char *str;
68
 
        struct stringlist *next;
69
 
};
70
 
 
71
 
void stringlist_add(struct stringlist **, char *);
72
 
void stringlist_copy(struct stringlist **, struct stringlist *);
73
 
void stringlist_free(struct stringlist *);
74
 
 
75
 
struct userdata {
76
 
        uid_t uid;
77
 
        gid_t gid;
78
 
        char *name;
79
 
};
80
 
 
81
 
void builduserdata(struct userdata **, char *);
82
 
void clearuserdata(struct userdata **);
83
 
void newuserdata(struct userdata **); 
84
 
void userdata_copy(struct userdata **, struct userdata *);
85
 
 
86
 
#endif /* !H_DATA */
87
 
 
88
 
/* vim: set ts=2: */