Imported Upstream version 2.5.1
[ossec-hids.git] / src / config / syscheck-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 #ifndef __SYSCHECKC_H
14 #define __SYSCHECKC_H
15
16
17 #define MAX_DIR_SIZE    64
18 #define MAX_DIR_ENTRY   128
19 #define SYSCHECK_WAIT   300
20
21
22 /* Checking options */
23 #define CHECK_MD5SUM        0000001
24 #define CHECK_PERM          0000002
25 #define CHECK_SIZE          0000004
26 #define CHECK_OWNER         0000010
27 #define CHECK_GROUP         0000020
28 #define CHECK_SHA1SUM       0000040
29 #define CHECK_REALTIME      0000100
30 #define CHECK_SEECHANGES    0000200
31
32
33 #include <stdio.h>
34 typedef struct _rtfim
35 {
36     int fd;
37     void *dirtb;
38     #ifdef WIN32
39     HANDLE evt;
40     #endif
41 }rtfim;
42
43 typedef struct _config
44 {
45     int tsleep;
46     int sleep_after;
47     int rootcheck;
48     int disabled;
49     int scan_on_start;
50     int realtime_count;
51     
52     int time;
53     int queue;
54     
55     int *opts;
56
57     char *workdir;
58     char *remote_db;
59     char *db;
60
61     char *scan_day;
62     char *scan_time;
63     
64         char **ignore;
65     void **ignore_regex;
66     
67         char **dir;
68     void **filerestrict;
69
70     /* Windows only registry checking */
71     #ifdef WIN32
72         char **registry_ignore;
73     void **registry_ignore_regex;
74         char **registry;
75     FILE *reg_fp;
76     #endif
77     
78     void *fp;
79
80     rtfim *realtime;
81
82 }config;
83
84 #endif
85
86 /* EOF */