Rev | Line | |
---|
[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"
|
---|
| 9 |
|
---|
| 10 | #include "sh_utmp.h"
|
---|
| 11 | #include "sh_mounts.h"
|
---|
| 12 | #include "sh_userfiles.h"
|
---|
| 13 | #include "sh_kern.h"
|
---|
| 14 | #include "sh_suidchk.h"
|
---|
[68] | 15 | #include "sh_processcheck.h"
|
---|
| 16 | #include "sh_portcheck.h"
|
---|
[1] | 17 |
|
---|
| 18 | sh_mtype modList[] = {
|
---|
| 19 | #ifdef SH_USE_UTMP
|
---|
| 20 | {
|
---|
| 21 | N_("UTMP"),
|
---|
| 22 | 0,
|
---|
| 23 | sh_utmp_init,
|
---|
| 24 | sh_utmp_timer,
|
---|
| 25 | sh_utmp_check,
|
---|
| 26 | sh_utmp_end,
|
---|
| 27 | sh_utmp_null,
|
---|
| 28 |
|
---|
| 29 | N_("[Utmp]"),
|
---|
| 30 | sh_utmp_table,
|
---|
| 31 | },
|
---|
| 32 | #endif
|
---|
| 33 |
|
---|
| 34 | #ifdef SH_USE_MOUNTS
|
---|
| 35 | {
|
---|
| 36 | N_("MOUNTS"),
|
---|
| 37 | 0,
|
---|
| 38 | sh_mounts_init,
|
---|
| 39 | sh_mounts_timer,
|
---|
| 40 | sh_mounts_check,
|
---|
| 41 | sh_mounts_cleanup,
|
---|
| 42 | sh_mounts_reconf,
|
---|
| 43 |
|
---|
| 44 | N_("[Mounts]"),
|
---|
| 45 | sh_mounts_table,
|
---|
| 46 | },
|
---|
| 47 | #endif
|
---|
| 48 |
|
---|
| 49 | #ifdef SH_USE_USERFILES
|
---|
| 50 | {
|
---|
| 51 | N_("USERFILES"),
|
---|
| 52 | 0,
|
---|
| 53 | sh_userfiles_init,
|
---|
| 54 | sh_userfiles_timer,
|
---|
| 55 | sh_userfiles_check,
|
---|
| 56 | sh_userfiles_cleanup,
|
---|
| 57 | sh_userfiles_reconf,
|
---|
| 58 |
|
---|
| 59 | N_("[UserFiles]"),
|
---|
| 60 | sh_userfiles_table,
|
---|
| 61 | },
|
---|
| 62 | #endif
|
---|
| 63 |
|
---|
| 64 | #ifdef SH_USE_KERN
|
---|
| 65 | {
|
---|
| 66 | N_("KERNEL"),
|
---|
| 67 | 0,
|
---|
| 68 | sh_kern_init,
|
---|
| 69 | sh_kern_timer,
|
---|
| 70 | sh_kern_check,
|
---|
| 71 | sh_kern_end,
|
---|
| 72 | sh_kern_null,
|
---|
| 73 |
|
---|
| 74 | N_("[Kernel]"),
|
---|
| 75 | sh_kern_table,
|
---|
| 76 | },
|
---|
| 77 | #endif
|
---|
[68] | 78 |
|
---|
[1] | 79 | #ifdef SH_USE_SUIDCHK
|
---|
| 80 | {
|
---|
| 81 | N_("SUIDCHECK"),
|
---|
| 82 | 0,
|
---|
| 83 | sh_suidchk_init,
|
---|
| 84 | sh_suidchk_timer,
|
---|
| 85 | sh_suidchk_check,
|
---|
| 86 | sh_suidchk_end,
|
---|
| 87 | sh_suidchk_free_schedule,
|
---|
| 88 |
|
---|
| 89 | N_("[SuidCheck]"),
|
---|
| 90 | sh_suidchk_table,
|
---|
| 91 | },
|
---|
| 92 | #endif
|
---|
[68] | 93 |
|
---|
| 94 | #ifdef SH_USE_PROCESSCHECK
|
---|
[1] | 95 | {
|
---|
[68] | 96 | N_("PROCESSCHECK"),
|
---|
| 97 | 0,
|
---|
| 98 | sh_prochk_init,
|
---|
| 99 | sh_prochk_timer,
|
---|
| 100 | sh_prochk_check,
|
---|
| 101 | sh_prochk_cleanup,
|
---|
| 102 | sh_prochk_reconf,
|
---|
| 103 |
|
---|
| 104 | N_("[ProcessCheck]"),
|
---|
| 105 | sh_prochk_table,
|
---|
| 106 | },
|
---|
| 107 | #endif
|
---|
| 108 |
|
---|
| 109 | #ifdef SH_USE_PORTCHECK
|
---|
| 110 | {
|
---|
| 111 | N_("PORTCHECK"),
|
---|
| 112 | 0,
|
---|
| 113 | sh_portchk_init,
|
---|
| 114 | sh_portchk_timer,
|
---|
| 115 | sh_portchk_check,
|
---|
| 116 | sh_portchk_cleanup,
|
---|
| 117 | sh_portchk_reconf,
|
---|
| 118 |
|
---|
| 119 | N_("[PortCheck]"),
|
---|
| 120 | sh_portchk_table,
|
---|
| 121 | },
|
---|
| 122 | #endif
|
---|
| 123 |
|
---|
| 124 | {
|
---|
[1] | 125 | NULL,
|
---|
| 126 | 0,
|
---|
| 127 |
|
---|
| 128 | NULL,
|
---|
| 129 | NULL,
|
---|
| 130 | NULL,
|
---|
| 131 | NULL,
|
---|
| 132 | NULL,
|
---|
| 133 |
|
---|
| 134 | NULL,
|
---|
| 135 | NULL,
|
---|
| 136 | },
|
---|
| 137 | };
|
---|
| 138 |
|
---|
| 139 | #endif
|
---|
| 140 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.