source: trunk/src/sh_modules.c@ 271

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

Use inotify in utmp module (ticket #177).

File size: 2.5 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"
[1]19
20sh_mtype modList[] = {
21#ifdef SH_USE_UTMP
22 {
23 N_("UTMP"),
[142]24 -1,
[259]25 SH_MODFL_NOTIMER,
[1]26 sh_utmp_init,
27 sh_utmp_timer,
28 sh_utmp_check,
29 sh_utmp_end,
[149]30 sh_utmp_reconf,
[1]31
32 N_("[Utmp]"),
33 sh_utmp_table,
[140]34 PTHREAD_MUTEX_INITIALIZER,
[1]35 },
36#endif
37
38#ifdef SH_USE_MOUNTS
39 {
40 N_("MOUNTS"),
[142]41 -1,
[259]42 0,
[1]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,
[140]51 PTHREAD_MUTEX_INITIALIZER,
[1]52 },
53#endif
54
55#ifdef SH_USE_USERFILES
56 {
57 N_("USERFILES"),
[142]58 -1,
[259]59 0,
[1]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,
[140]68 PTHREAD_MUTEX_INITIALIZER,
[1]69 },
70#endif
71
72#ifdef SH_USE_KERN
73 {
74 N_("KERNEL"),
[142]75 -1,
[259]76 0,
[1]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,
[140]85 PTHREAD_MUTEX_INITIALIZER,
[1]86 },
87#endif
[68]88
[1]89#ifdef SH_USE_SUIDCHK
90 {
91 N_("SUIDCHECK"),
[142]92 -1,
[259]93 0,
[1]94 sh_suidchk_init,
95 sh_suidchk_timer,
96 sh_suidchk_check,
97 sh_suidchk_end,
[149]98 sh_suidchk_reconf,
[1]99
100 N_("[SuidCheck]"),
101 sh_suidchk_table,
[140]102 PTHREAD_MUTEX_INITIALIZER,
[1]103 },
104#endif
[68]105
106#ifdef SH_USE_PROCESSCHECK
[1]107 {
[68]108 N_("PROCESSCHECK"),
[142]109 -1,
[259]110 0,
[68]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,
[140]119 PTHREAD_MUTEX_INITIALIZER,
[68]120 },
121#endif
122
123#ifdef SH_USE_PORTCHECK
124 {
125 N_("PORTCHECK"),
[142]126 -1,
[259]127 0,
[68]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,
[140]136 PTHREAD_MUTEX_INITIALIZER,
[68]137 },
138#endif
139
[183]140#ifdef USE_LOGFILE_MONITOR
[68]141 {
[183]142 N_("LOGMON"),
143 -1,
[259]144 0,
[183]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
[186]151 N_("[Logmon]"),
[183]152 sh_log_check_table,
153 PTHREAD_MUTEX_INITIALIZER,
154 },
155#endif
156
157 {
[1]158 NULL,
[142]159 -1,
[259]160 0,
[1]161
162 NULL,
163 NULL,
164 NULL,
165 NULL,
166 NULL,
167
168 NULL,
169 NULL,
[140]170 PTHREAD_MUTEX_INITIALIZER,
[1]171 },
172};
173
174#endif
175
Note: See TracBrowser for help on using the repository browser.