source: trunk/src/sh_modules.c@ 260

Last change on this file since 260 was 259, checked in by katerina, 15 years ago

Use inotify in utmp module (ticket #177).

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