source: trunk/src/sh_modules.c@ 298

Last change on this file since 298 was 294, checked in by katerina, 14 years ago

Tikets #213 and #214 (Use auditd to determine who changed a file, Windows registry check).

File size: 2.8 KB
RevLine 
[1]1#include "config_xor.h"
2
3#include <stdio.h>
4#include <time.h>
5
6#if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE)
7
8#include "sh_modules.h"
[140]9#include "sh_pthread.h"
[1]10
11#include "sh_utmp.h"
12#include "sh_mounts.h"
13#include "sh_userfiles.h"
14#include "sh_kern.h"
15#include "sh_suidchk.h"
[68]16#include "sh_processcheck.h"
17#include "sh_portcheck.h"
[183]18#include "sh_logmon.h"
[294]19#include "sh_registry.h"
[1]20
21sh_mtype modList[] = {
22#ifdef SH_USE_UTMP
23 {
24 N_("UTMP"),
[142]25 -1,
[259]26 SH_MODFL_NOTIMER,
[1]27 sh_utmp_init,
28 sh_utmp_timer,
29 sh_utmp_check,
30 sh_utmp_end,
[149]31 sh_utmp_reconf,
[1]32
33 N_("[Utmp]"),
34 sh_utmp_table,
[140]35 PTHREAD_MUTEX_INITIALIZER,
[1]36 },
37#endif
38
39#ifdef SH_USE_MOUNTS
40 {
41 N_("MOUNTS"),
[142]42 -1,
[259]43 0,
[1]44 sh_mounts_init,
45 sh_mounts_timer,
46 sh_mounts_check,
47 sh_mounts_cleanup,
48 sh_mounts_reconf,
49
50 N_("[Mounts]"),
51 sh_mounts_table,
[140]52 PTHREAD_MUTEX_INITIALIZER,
[1]53 },
54#endif
55
56#ifdef SH_USE_USERFILES
57 {
58 N_("USERFILES"),
[142]59 -1,
[259]60 0,
[1]61 sh_userfiles_init,
62 sh_userfiles_timer,
63 sh_userfiles_check,
64 sh_userfiles_cleanup,
65 sh_userfiles_reconf,
66
67 N_("[UserFiles]"),
68 sh_userfiles_table,
[140]69 PTHREAD_MUTEX_INITIALIZER,
[1]70 },
71#endif
72
73#ifdef SH_USE_KERN
74 {
75 N_("KERNEL"),
[142]76 -1,
[259]77 0,
[1]78 sh_kern_init,
79 sh_kern_timer,
80 sh_kern_check,
81 sh_kern_end,
82 sh_kern_null,
83
84 N_("[Kernel]"),
85 sh_kern_table,
[140]86 PTHREAD_MUTEX_INITIALIZER,
[1]87 },
88#endif
[68]89
[1]90#ifdef SH_USE_SUIDCHK
91 {
92 N_("SUIDCHECK"),
[142]93 -1,
[259]94 0,
[1]95 sh_suidchk_init,
96 sh_suidchk_timer,
97 sh_suidchk_check,
98 sh_suidchk_end,
[149]99 sh_suidchk_reconf,
[1]100
101 N_("[SuidCheck]"),
102 sh_suidchk_table,
[140]103 PTHREAD_MUTEX_INITIALIZER,
[1]104 },
105#endif
[68]106
107#ifdef SH_USE_PROCESSCHECK
[1]108 {
[68]109 N_("PROCESSCHECK"),
[142]110 -1,
[259]111 0,
[68]112 sh_prochk_init,
113 sh_prochk_timer,
114 sh_prochk_check,
115 sh_prochk_cleanup,
116 sh_prochk_reconf,
117
118 N_("[ProcessCheck]"),
119 sh_prochk_table,
[140]120 PTHREAD_MUTEX_INITIALIZER,
[68]121 },
122#endif
123
124#ifdef SH_USE_PORTCHECK
125 {
126 N_("PORTCHECK"),
[142]127 -1,
[259]128 0,
[68]129 sh_portchk_init,
130 sh_portchk_timer,
131 sh_portchk_check,
132 sh_portchk_cleanup,
133 sh_portchk_reconf,
134
135 N_("[PortCheck]"),
136 sh_portchk_table,
[140]137 PTHREAD_MUTEX_INITIALIZER,
[68]138 },
139#endif
140
[183]141#ifdef USE_LOGFILE_MONITOR
[68]142 {
[183]143 N_("LOGMON"),
144 -1,
[259]145 0,
[183]146 sh_log_check_init,
147 sh_log_check_timer,
148 sh_log_check_check,
149 sh_log_check_cleanup,
150 sh_log_check_reconf,
151
[186]152 N_("[Logmon]"),
[183]153 sh_log_check_table,
154 PTHREAD_MUTEX_INITIALIZER,
155 },
156#endif
157
[294]158#ifdef USE_REGISTRY_CHECK
[183]159 {
[294]160 N_("REGISTRY"),
161 -1,
162 0,
163 sh_reg_check_init,
164 sh_reg_check_timer,
165 sh_reg_check_run,
166 sh_reg_check_cleanup,
167 sh_reg_check_reconf,
168
169 N_("[Registry]"),
170 sh_reg_check_table,
171 PTHREAD_MUTEX_INITIALIZER,
172 },
173#endif
174
175 {
[1]176 NULL,
[142]177 -1,
[259]178 0,
[1]179
180 NULL,
181 NULL,
182 NULL,
183 NULL,
184 NULL,
185
186 NULL,
187 NULL,
[140]188 PTHREAD_MUTEX_INITIALIZER,
[1]189 },
190};
191
192#endif
193
Note: See TracBrowser for help on using the repository browser.