Last change
on this file since 81 was 78, checked in by rainer, 18 years ago |
Fix for ticket #41 (unable to deactivate processcheck), and minor code cleanup.
|
File size:
5.4 KB
|
Line | |
---|
1 |
|
---|
2 | #ifndef SH_CAT_H
|
---|
3 | #define SH_CAT_H
|
---|
4 |
|
---|
5 | typedef struct foo_cat_entry {
|
---|
6 | unsigned long id;
|
---|
7 | unsigned long priority;
|
---|
8 | unsigned long class;
|
---|
9 | char * format;
|
---|
10 | } cat_entry;
|
---|
11 |
|
---|
12 | extern cat_entry msg_cat[];
|
---|
13 |
|
---|
14 | extern char * class_cat[];
|
---|
15 |
|
---|
16 | #define AUD 0
|
---|
17 | #define PANIC 1
|
---|
18 | #define RUN 2
|
---|
19 | #define FIL 3
|
---|
20 | #define TCP 4
|
---|
21 | #define ERR 5
|
---|
22 | #define STAMP 6
|
---|
23 | #define ENET 7
|
---|
24 | #define EINPUT 8
|
---|
25 | #define EVENT 9
|
---|
26 | #define START 10
|
---|
27 | #define LOGKEY 11
|
---|
28 | #define OTHER_CLA ((1 << RUN)|(1 << FIL)|(1 << TCP))
|
---|
29 | #define RUN_NEW ((1 << RUN)|(1 << EVENT)|(1 << START)|(1 << LOGKEY))
|
---|
30 | #define FIL_NEW ((1 << FIL)|(1 << EVENT))
|
---|
31 | #define ERROR_CLA ((1 << ERR)|(1 << PANIC)|(1 << ENET)|(1 << EINPUT))
|
---|
32 |
|
---|
33 | #define SH_CLA_RAW_MAX 12
|
---|
34 | #define SH_CLA_MAX 16
|
---|
35 |
|
---|
36 |
|
---|
37 | #if 0
|
---|
38 | enum {
|
---|
39 | SH_CLA_AUD = (1 << 0),
|
---|
40 | SH_CLA_PANIC = (1 << 1),
|
---|
41 | SH_CLA_RUN = (1 << 2),
|
---|
42 | SH_CLA_FIL = (1 << 3),
|
---|
43 | SH_CLA_TCP = (1 << 4),
|
---|
44 | SH_CLA_ERR = (1 << 5),
|
---|
45 | SH_CLA_STAMP = (1 << 6),
|
---|
46 | SH_CLA_ENET = (1 << 7),
|
---|
47 | SH_CLA_EINPUT = (1 << 8)
|
---|
48 | };
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | enum {
|
---|
52 | MSG_EXIT_ABORTS,
|
---|
53 | MSG_START_SRV,
|
---|
54 |
|
---|
55 | MSG_EXIT_ABORT1,
|
---|
56 | MSG_EXIT_NORMAL,
|
---|
57 | MSG_START_KEY_MAIL,
|
---|
58 | MSG_START_KEY,
|
---|
59 | MSG_START_0H,
|
---|
60 | MSG_START_1H,
|
---|
61 | MSG_START_2H,
|
---|
62 | MSG_START_GH,
|
---|
63 | MSG_START_GH2,
|
---|
64 | MSG_SUSPEND,
|
---|
65 |
|
---|
66 | MSG_MLOCK,
|
---|
67 | MSG_W_SIG,
|
---|
68 | MSG_W_CHDIR,
|
---|
69 |
|
---|
70 | MSG_MOD_FAIL,
|
---|
71 | MSG_MOD_OK,
|
---|
72 | MSG_MOD_EXEC,
|
---|
73 |
|
---|
74 | MSG_RECONF,
|
---|
75 | MSG_CHECK_0,
|
---|
76 | MSG_CHECK_1,
|
---|
77 | MSG_STAMP,
|
---|
78 |
|
---|
79 | MSG_D_START,
|
---|
80 | MSG_D_DSTART,
|
---|
81 | MSG_D_FAIL,
|
---|
82 |
|
---|
83 |
|
---|
84 | #ifndef HAVE_URANDOM
|
---|
85 | MSG_ENSTART,
|
---|
86 | MSG_ENEXEC,
|
---|
87 | MSG_ENFAIL,
|
---|
88 | MSG_ENTOUT,
|
---|
89 | MSG_ENCLOS,
|
---|
90 | MSG_ENCLOS1,
|
---|
91 | MSG_ENREAD,
|
---|
92 | #endif
|
---|
93 |
|
---|
94 | #ifdef SH_USE_SUIDCHK
|
---|
95 | MSG_SUID_POLICY,
|
---|
96 | MSG_SUID_FOUND,
|
---|
97 | MSG_SUID_SUMMARY,
|
---|
98 | MSG_SUID_QREPORT,
|
---|
99 | MSG_SUID_ERROR,
|
---|
100 | #endif
|
---|
101 |
|
---|
102 | #ifdef SH_USE_KERN
|
---|
103 | /* FreeBSD */
|
---|
104 | MSG_KERN_POLICY,
|
---|
105 | MSG_KERN_POL_CO,
|
---|
106 |
|
---|
107 | /* Linux */
|
---|
108 | MSG_KERN_SYSCALL,
|
---|
109 | MSG_KERN_PROC,
|
---|
110 | MSG_KERN_IDT,
|
---|
111 | MSG_KERN_GATE,
|
---|
112 | #endif
|
---|
113 |
|
---|
114 | #ifdef SH_USE_UTMP
|
---|
115 | MSG_UT_CHECK,
|
---|
116 |
|
---|
117 | MSG_UT_LG1X,
|
---|
118 | MSG_UT_LG2X,
|
---|
119 | MSG_UT_LG3X,
|
---|
120 |
|
---|
121 | MSG_UT_LG1A,
|
---|
122 | MSG_UT_LG1B,
|
---|
123 |
|
---|
124 | MSG_UT_LG2A,
|
---|
125 | MSG_UT_LG2B,
|
---|
126 |
|
---|
127 | MSG_UT_LG3A,
|
---|
128 | MSG_UT_LG3B,
|
---|
129 | MSG_UT_LG3C,
|
---|
130 | MSG_UT_ROT,
|
---|
131 |
|
---|
132 | #endif
|
---|
133 |
|
---|
134 | #ifdef SH_USE_PROCESSCHECK
|
---|
135 | MSG_PCK_CHECK,
|
---|
136 | MSG_PCK_OK,
|
---|
137 | MSG_PCK_P_HIDDEN,
|
---|
138 | MSG_PCK_HIDDEN,
|
---|
139 | MSG_PCK_FAKE,
|
---|
140 | MSG_PCK_MISS,
|
---|
141 | #endif
|
---|
142 |
|
---|
143 | #ifdef SH_USE_PORTCHECK
|
---|
144 | MSG_PORT_REPORT,
|
---|
145 | #endif
|
---|
146 |
|
---|
147 | #ifdef SH_USE_MOUNTS
|
---|
148 | MSG_MNT_CHECK,
|
---|
149 | MSG_MNT_MEMLIST,
|
---|
150 | MSG_MNT_MNTMISS,
|
---|
151 | MSG_MNT_OPTMISS,
|
---|
152 | #endif
|
---|
153 |
|
---|
154 | #ifdef SH_USE_USERFILES
|
---|
155 | MSG_USERFILES_SUMMARY,
|
---|
156 | #endif
|
---|
157 |
|
---|
158 | #if defined(SH_WITH_CLIENT) || defined(SH_STANDALONE)
|
---|
159 |
|
---|
160 | MSG_FI_TOOLATE,
|
---|
161 | MSG_FI_CSUM,
|
---|
162 | MSG_FI_DSUM,
|
---|
163 | MSG_FI_CHK,
|
---|
164 | MSG_FI_NULL,
|
---|
165 | MSG_FI_FAIL,
|
---|
166 | MSG_FI_GLOB,
|
---|
167 | MSG_FI_COLL,
|
---|
168 | MSG_FI_DOUBLE,
|
---|
169 | MSG_FI_2LONG,
|
---|
170 | MSG_FI_2LONG2,
|
---|
171 | MSG_FI_NOPATH,
|
---|
172 | MSG_FI_DLNK,
|
---|
173 | MSG_FI_RDLNK,
|
---|
174 | MSG_FI_NOGRP,
|
---|
175 | MSG_FI_NOUSR,
|
---|
176 | MSG_FI_LSTAT,
|
---|
177 | MSG_FI_OBSC,
|
---|
178 | MSG_FI_OBSC2,
|
---|
179 | MSG_FI_LIST,
|
---|
180 | MSG_FI_LLNK,
|
---|
181 | MSG_FI_MISS,
|
---|
182 | /* #ifdef SH_USE_XML */
|
---|
183 | MSG_FI_MISS2,
|
---|
184 | MSG_FI_ADD2,
|
---|
185 | /* #endif */
|
---|
186 | MSG_FI_ADD,
|
---|
187 | MSG_FI_CHAN,
|
---|
188 | MSG_FI_NODIR,
|
---|
189 | MSG_FI_DBEX,
|
---|
190 | #endif
|
---|
191 |
|
---|
192 | MSG_TCP_NETRP,
|
---|
193 |
|
---|
194 | #ifndef SH_STANDALONE
|
---|
195 | #ifdef INET_SYSLOG
|
---|
196 | MSG_INET_SYSLOG,
|
---|
197 | MSG_ERR_SYSLOG,
|
---|
198 | #endif
|
---|
199 |
|
---|
200 | MSG_TCP_MISMATCH,
|
---|
201 | MSG_TCP_MISENC,
|
---|
202 | MSG_TCP_NONAME,
|
---|
203 | MSG_TCP_UNEXP,
|
---|
204 | MSG_TCP_EFIL,
|
---|
205 | MSG_TCP_NOCONF,
|
---|
206 | MSG_TCP_NOAUTH,
|
---|
207 | MSG_TCP_CONF,
|
---|
208 | MSG_TCP_AUTH,
|
---|
209 | MSG_TCP_FOK,
|
---|
210 | MSG_TCP_FBAD,
|
---|
211 | MSG_TCP_ECONN,
|
---|
212 | MSG_TCP_EZERO,
|
---|
213 | MSG_TCP_EBGN,
|
---|
214 |
|
---|
215 | MSG_TCP_CREG,
|
---|
216 | MSG_TCP_FAUTH,
|
---|
217 | MSG_TCP_TIMOUT,
|
---|
218 |
|
---|
219 | MSG_TCP_RESCLT,
|
---|
220 | MSG_TCP_RESPEER,
|
---|
221 | MSG_TCP_LOOKERS,
|
---|
222 | MSG_TCP_LOOKUP,
|
---|
223 |
|
---|
224 | MSG_TCP_TIMEXC,
|
---|
225 | MSG_TCP_NOCLT,
|
---|
226 | MSG_TCP_BADCONN,
|
---|
227 | MSG_TCP_FFILE ,
|
---|
228 | MSG_TCP_NFILE ,
|
---|
229 | MSG_TCP_FINV ,
|
---|
230 | MSG_TCP_OKFILE,
|
---|
231 | MSG_TCP_OKMSG,
|
---|
232 | MSG_TCP_MSG,
|
---|
233 | MSG_TCP_NEW,
|
---|
234 | MSG_TCP_ILL,
|
---|
235 | MSG_TCP_SYNC,
|
---|
236 | MSG_TCP_RESET,
|
---|
237 | MSG_TCP_CNEW,
|
---|
238 | MSG_E_HTML,
|
---|
239 | #endif
|
---|
240 |
|
---|
241 |
|
---|
242 | MSG_E_AUTH,
|
---|
243 | MSG_ACCESS,
|
---|
244 | MSG_TRUST,
|
---|
245 | MSG_NOACCESS,
|
---|
246 | MSG_P_NODATA,
|
---|
247 |
|
---|
248 |
|
---|
249 | #ifndef MEM_DEBUG
|
---|
250 | MSG_E_MNULL,
|
---|
251 | MSG_E_MMEM,
|
---|
252 | #else
|
---|
253 | MSG_MSTAMP,
|
---|
254 | MSG_MSTAMP2,
|
---|
255 | MSG_E_MNULL,
|
---|
256 | MSG_E_MMEM,
|
---|
257 | MSG_E_MREC,
|
---|
258 | MSG_E_MOVER,
|
---|
259 | MSG_E_MUNDER,
|
---|
260 | MSG_E_NOTFREE,
|
---|
261 | #endif
|
---|
262 |
|
---|
263 | MSG_E_TRUST,
|
---|
264 | MSG_E_HASH,
|
---|
265 | MSG_E_ACCESS,
|
---|
266 | MSG_E_READ,
|
---|
267 | MSG_E_TIMEOUT,
|
---|
268 | MSG_NODEV,
|
---|
269 | MSG_LOCKED,
|
---|
270 | MSG_PIDFILE,
|
---|
271 | MSG_NOEXEC,
|
---|
272 | MSG_ES_ENT,
|
---|
273 | MSG_ES_KEY1,
|
---|
274 | MSG_ES_KEY2,
|
---|
275 | MSG_E_GPG,
|
---|
276 | MSG_E_GPG_FP,
|
---|
277 | MSG_E_GPG_CHK,
|
---|
278 | MSG_E_SUBGEN,
|
---|
279 | MSG_E_SUBGPATH,
|
---|
280 | MSG_E_UNLNK,
|
---|
281 | MSG_E_REGEX,
|
---|
282 | MSG_E_OPENDIR,
|
---|
283 | MSG_E_TRUST1,
|
---|
284 | MSG_E_TRUST2,
|
---|
285 | MSG_E_PWNULL,
|
---|
286 | MSG_E_PWLONG,
|
---|
287 | MSG_E_GRNULL,
|
---|
288 |
|
---|
289 | MSG_E_NET,
|
---|
290 | MSG_E_NETST,
|
---|
291 | MSG_E_NETST1,
|
---|
292 | MSG_E_NLOST,
|
---|
293 | MSG_E_NEST,
|
---|
294 |
|
---|
295 | MSG_EINVALHEAD,
|
---|
296 | MSG_EINVALCONF,
|
---|
297 | MSG_EINVALS,
|
---|
298 | MSG_EINVALL,
|
---|
299 | MSG_EINVALD,
|
---|
300 | MSG_EINVALDD,
|
---|
301 |
|
---|
302 | MSG_SRV_FAIL,
|
---|
303 | MSG_QUEUE_FULL,
|
---|
304 |
|
---|
305 | MSG_AUD_OPEN,
|
---|
306 | MSG_AUD_DUP,
|
---|
307 | MSG_AUD_PIPE,
|
---|
308 | MSG_AUD_FORK,
|
---|
309 | MSG_AUD_EXIT,
|
---|
310 | MSG_AUD_SETUID,
|
---|
311 | MSG_AUD_SETGID,
|
---|
312 | MSG_AUD_UTIME,
|
---|
313 | MSG_AUD_EXEC,
|
---|
314 | MSG_AUD_CHDIR,
|
---|
315 | MSG_AUD_UNLINK,
|
---|
316 | MSG_AUD_KILL,
|
---|
317 |
|
---|
318 | MSG_ERR_OPEN,
|
---|
319 | MSG_ERR_DUP,
|
---|
320 | MSG_ERR_PIPE,
|
---|
321 | MSG_ERR_FORK,
|
---|
322 | MSG_ERR_SETUID,
|
---|
323 | MSG_ERR_SETGID,
|
---|
324 | MSG_ERR_UTIME,
|
---|
325 | MSG_ERR_EXEC,
|
---|
326 | MSG_ERR_CHDIR,
|
---|
327 | MSG_ERR_UNLINK,
|
---|
328 | MSG_ERR_KILL,
|
---|
329 |
|
---|
330 | MSG_ERR_SIGACT,
|
---|
331 | MSG_ERR_CONNECT,
|
---|
332 | MSG_ERR_ACCEPT,
|
---|
333 | MSG_ERR_LSTAT,
|
---|
334 | MSG_ERR_FSTAT,
|
---|
335 | MSG_ERR_STAT,
|
---|
336 | MSG_ERR_FCNTL
|
---|
337 | };
|
---|
338 |
|
---|
339 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.