Imported Upstream version 2.5.1
[ossec-hids.git] / src / config / global-config.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12  
13
14 #ifndef _CCONFIG__H
15 #define _CCONFIG__H
16 #include "shared.h"
17
18
19 /* Configuration structure */
20 typedef struct __Config
21 {
22     u_int8_t logall;
23     u_int8_t stats;
24     u_int8_t integrity;
25     u_int8_t syscheck_auto_ignore;
26     u_int8_t syscheck_alert_new;
27     u_int8_t rootcheck;
28     u_int8_t hostinfo;
29     u_int8_t mailbylevel;
30     u_int8_t logbylevel;
31     u_int8_t logfw;
32     
33     /* Prelude support */
34     u_int8_t prelude;
35     /* which min. level the alert must be sent to prelude */
36     u_int8_t prelude_log_level;
37     /* prelude profile name */
38     char *prelude_profile;
39
40     /* Picviz support */
41     u_int8_t picviz;
42     char *picviz_socket;
43
44     /* Not currently used */
45     u_int8_t keeplogdate;
46
47     /* Mail alerting */
48     short int mailnotify;
49     
50     /* For the active response */  
51     int ar;
52     
53     /* For the correlation */
54     int memorysize;
55    
56     /* List of files to ignore (syscheck) */ 
57     char **syscheck_ignore;
58
59     /* List of ips to never block */
60     os_ip **white_list;
61
62     /* List of hostnames to never block */
63     OSMatch **hostname_white_list;
64
65     /* List of rules */
66     char **includes;
67
68     /* List of Lists */
69     char **lists;
70
71     /* List of decoders */
72     char **decoders;
73
74     /* Global rule hash. */
75     void *g_rules_hash;
76
77 }_Config;
78
79
80 #endif