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