source: trunk/src/sh_modules.c@ 526

Last change on this file since 526 was 496, checked in by katerina, 9 years ago

Fix for ticket #393 (wrong policy assigned).

File size: 2.9 KB
Line 
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"
9#include "sh_pthread.h"
10
11#include "sh_utmp.h"
12#include "sh_mounts.h"
13#include "sh_userfiles.h"
14#include "sh_suidchk.h"
15#include "sh_processcheck.h"
16#include "sh_portcheck.h"
17#include "sh_logmon.h"
18#include "sh_registry.h"
19#include "sh_fInotify.h"
20
21sh_mtype modList[] = {
22#ifdef SH_USE_UTMP
23 {
24 N_("UTMP"),
25 -1,
26 SH_MODFL_NOTIMER,
27 sh_utmp_init,
28 sh_utmp_timer,
29 sh_utmp_check,
30 sh_utmp_end,
31 sh_utmp_reconf,
32
33 N_("[Utmp]"),
34 sh_utmp_table,
35 PTHREAD_MUTEX_INITIALIZER,
36 },
37#endif
38
39#ifdef SH_USE_MOUNTS
40 {
41 N_("MOUNTS"),
42 -1,
43 0,
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,
52 PTHREAD_MUTEX_INITIALIZER,
53 },
54#endif
55
56#ifdef SH_USE_USERFILES
57 {
58 N_("USERFILES"),
59 -1,
60 0,
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,
69 PTHREAD_MUTEX_INITIALIZER,
70 },
71#endif
72
73#ifdef SH_USE_SUIDCHK
74 {
75 N_("SUIDCHECK"),
76 -1,
77 0,
78 sh_suidchk_init,
79 sh_suidchk_timer,
80 sh_suidchk_check,
81 sh_suidchk_end,
82 sh_suidchk_reconf,
83
84 N_("[SuidCheck]"),
85 sh_suidchk_table,
86 PTHREAD_MUTEX_INITIALIZER,
87 },
88#endif
89
90#ifdef SH_USE_PROCESSCHECK
91 {
92 N_("PROCESSCHECK"),
93 -1,
94 0,
95 sh_prochk_init,
96 sh_prochk_timer,
97 sh_prochk_check,
98 sh_prochk_cleanup,
99 sh_prochk_reconf,
100
101 N_("[ProcessCheck]"),
102 sh_prochk_table,
103 PTHREAD_MUTEX_INITIALIZER,
104 },
105#endif
106
107#ifdef SH_USE_PORTCHECK
108 {
109 N_("PORTCHECK"),
110 -1,
111 0,
112 sh_portchk_init,
113 sh_portchk_timer,
114 sh_portchk_check,
115 sh_portchk_cleanup,
116 sh_portchk_reconf,
117
118 N_("[PortCheck]"),
119 sh_portchk_table,
120 PTHREAD_MUTEX_INITIALIZER,
121 },
122#endif
123
124#ifdef USE_LOGFILE_MONITOR
125 {
126 N_("LOGMON"),
127 -1,
128 0,
129 sh_log_check_init,
130 sh_log_check_timer,
131 sh_log_check_check,
132 sh_log_check_cleanup,
133 sh_log_check_reconf,
134
135 N_("[Logmon]"),
136 sh_log_check_table,
137 PTHREAD_MUTEX_INITIALIZER,
138 },
139#endif
140
141#ifdef USE_REGISTRY_CHECK
142 {
143 N_("REGISTRY"),
144 -1,
145 0,
146 sh_reg_check_init,
147 sh_reg_check_timer,
148 sh_reg_check_run,
149 sh_reg_check_cleanup,
150 sh_reg_check_reconf,
151
152 N_("[Registry]"),
153 sh_reg_check_table,
154 PTHREAD_MUTEX_INITIALIZER,
155 },
156#endif
157
158#if defined(HAVE_SYS_INOTIFY_H)
159 {
160 N_("INOTIFY"),
161 -1,
162 SH_MODFL_NEEDPAUSED,
163 sh_fInotify_init,
164 sh_fInotify_timer,
165 sh_fInotify_run,
166 sh_fInotify_cleanup,
167 sh_fInotify_reconf,
168
169 N_("[Inotify]"),
170 sh_fInotify_table,
171 PTHREAD_MUTEX_INITIALIZER,
172 },
173#endif
174
175 {
176 NULL,
177 -1,
178 0,
179
180 NULL,
181 NULL,
182 NULL,
183 NULL,
184 NULL,
185
186 NULL,
187 NULL,
188 PTHREAD_MUTEX_INITIALIZER,
189 },
190};
191
192#endif
193
Note: See TracBrowser for help on using the repository browser.