Imported Upstream version 2.3
[ossec-hids.git] / src / config / syscheck-config.h
1 /* @(#) $Id: syscheck-config.h,v 1.20 2009/10/02 19:28:34 dcid Exp $ */
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 3) 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
31
32 #include <stdio.h>
33 typedef struct _rtfim
34 {
35     int fd;
36     void *dirtb;
37     #ifdef WIN32
38     HANDLE evt;
39     #endif
40 }rtfim;
41
42 typedef struct _config
43 {
44     int tsleep;
45     int sleep_after;
46     int rootcheck;
47     int disabled;
48     int scan_on_start;
49     int realtime_count;
50     
51     int time;
52     int queue;
53     
54     int *opts;
55
56     char *workdir;
57     char *remote_db;
58     char *db;
59
60     char *scan_day;
61     char *scan_time;
62     
63         char **ignore;
64     void **ignore_regex;
65     
66         char **dir;
67
68     /* Windows only registry checking */
69     #ifdef WIN32
70         char **registry_ignore;
71     void **registry_ignore_regex;
72         char **registry;
73     FILE *reg_fp;
74     #endif
75     
76     FILE *fp;
77
78     rtfim *realtime;
79
80 }config;
81
82 #endif
83
84 /* EOF */