source: trunk/src/sh_modules.c@ 521

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

Fix for ticket #393 (wrong policy assigned).

File size: 2.9 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_suidchk.h"
[68]15#include "sh_processcheck.h"
16#include "sh_portcheck.h"
[183]17#include "sh_logmon.h"
[294]18#include "sh_registry.h"
[367]19#include "sh_fInotify.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_SUIDCHK
74 {
75 N_("SUIDCHECK"),
[142]76 -1,
[259]77 0,
[1]78 sh_suidchk_init,
79 sh_suidchk_timer,
80 sh_suidchk_check,
81 sh_suidchk_end,
[149]82 sh_suidchk_reconf,
[1]83
84 N_("[SuidCheck]"),
85 sh_suidchk_table,
[140]86 PTHREAD_MUTEX_INITIALIZER,
[1]87 },
88#endif
[68]89
90#ifdef SH_USE_PROCESSCHECK
[1]91 {
[68]92 N_("PROCESSCHECK"),
[142]93 -1,
[259]94 0,
[68]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,
[140]103 PTHREAD_MUTEX_INITIALIZER,
[68]104 },
105#endif
106
107#ifdef SH_USE_PORTCHECK
108 {
109 N_("PORTCHECK"),
[142]110 -1,
[259]111 0,
[68]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,
[140]120 PTHREAD_MUTEX_INITIALIZER,
[68]121 },
122#endif
123
[183]124#ifdef USE_LOGFILE_MONITOR
[68]125 {
[183]126 N_("LOGMON"),
127 -1,
[259]128 0,
[183]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
[186]135 N_("[Logmon]"),
[183]136 sh_log_check_table,
137 PTHREAD_MUTEX_INITIALIZER,
138 },
139#endif
140
[294]141#ifdef USE_REGISTRY_CHECK
[183]142 {
[294]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
[367]158#if defined(HAVE_SYS_INOTIFY_H)
[294]159 {
[367]160 N_("INOTIFY"),
161 -1,
[496]162 SH_MODFL_NEEDPAUSED,
[367]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 {
[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.