Last change
on this file since 326 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
|
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 | #include "sh_registry.h"
|
---|
20 |
|
---|
21 | sh_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_KERN
|
---|
74 | {
|
---|
75 | N_("KERNEL"),
|
---|
76 | -1,
|
---|
77 | 0,
|
---|
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,
|
---|
86 | PTHREAD_MUTEX_INITIALIZER,
|
---|
87 | },
|
---|
88 | #endif
|
---|
89 |
|
---|
90 | #ifdef SH_USE_SUIDCHK
|
---|
91 | {
|
---|
92 | N_("SUIDCHECK"),
|
---|
93 | -1,
|
---|
94 | 0,
|
---|
95 | sh_suidchk_init,
|
---|
96 | sh_suidchk_timer,
|
---|
97 | sh_suidchk_check,
|
---|
98 | sh_suidchk_end,
|
---|
99 | sh_suidchk_reconf,
|
---|
100 |
|
---|
101 | N_("[SuidCheck]"),
|
---|
102 | sh_suidchk_table,
|
---|
103 | PTHREAD_MUTEX_INITIALIZER,
|
---|
104 | },
|
---|
105 | #endif
|
---|
106 |
|
---|
107 | #ifdef SH_USE_PROCESSCHECK
|
---|
108 | {
|
---|
109 | N_("PROCESSCHECK"),
|
---|
110 | -1,
|
---|
111 | 0,
|
---|
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,
|
---|
120 | PTHREAD_MUTEX_INITIALIZER,
|
---|
121 | },
|
---|
122 | #endif
|
---|
123 |
|
---|
124 | #ifdef SH_USE_PORTCHECK
|
---|
125 | {
|
---|
126 | N_("PORTCHECK"),
|
---|
127 | -1,
|
---|
128 | 0,
|
---|
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,
|
---|
137 | PTHREAD_MUTEX_INITIALIZER,
|
---|
138 | },
|
---|
139 | #endif
|
---|
140 |
|
---|
141 | #ifdef USE_LOGFILE_MONITOR
|
---|
142 | {
|
---|
143 | N_("LOGMON"),
|
---|
144 | -1,
|
---|
145 | 0,
|
---|
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 |
|
---|
152 | N_("[Logmon]"),
|
---|
153 | sh_log_check_table,
|
---|
154 | PTHREAD_MUTEX_INITIALIZER,
|
---|
155 | },
|
---|
156 | #endif
|
---|
157 |
|
---|
158 | #ifdef USE_REGISTRY_CHECK
|
---|
159 | {
|
---|
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 | {
|
---|
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.