Lines 114-129
Link Here
|
114 |
|
114 |
|
115 |
/* Allow the user to specify sys_call_table addresses */ |
115 |
/* Allow the user to specify sys_call_table addresses */ |
116 |
static unsigned long sys_call_table_addr[4] = { 0,0,0,0 }; |
116 |
static unsigned long sys_call_table_addr[4] = { 0,0,0,0 }; |
|
|
117 |
#ifdef module_param_array |
118 |
module_param_array(sys_call_table_addr, long, NULL, 0); |
119 |
#else |
117 |
MODULE_PARM(sys_call_table_addr, "1-4l"); |
120 |
MODULE_PARM(sys_call_table_addr, "1-4l"); |
|
|
121 |
#endif |
118 |
MODULE_PARM_DESC(sys_call_table_addr, "Location of system call tables"); |
122 |
MODULE_PARM_DESC(sys_call_table_addr, "Location of system call tables"); |
119 |
|
123 |
|
120 |
/* If this is set, we are more careful about avoiding duplicate matches */ |
124 |
/* If this is set, we are more careful about avoiding duplicate matches */ |
121 |
static int probe_carefully = 1; |
125 |
static int probe_carefully = 1; |
|
|
126 |
#ifdef module_param |
127 |
module_param(probe_carefully, int, 0); |
128 |
#else |
122 |
MODULE_PARM(probe_carefully, "i"); |
129 |
MODULE_PARM(probe_carefully, "i"); |
|
|
130 |
#endif |
123 |
MODULE_PARM_DESC(probe_carefully, "Probe for system call tables carefully"); |
131 |
MODULE_PARM_DESC(probe_carefully, "Probe for system call tables carefully"); |
124 |
|
132 |
|
125 |
static int probe_ignore_syscalls[8] = { -1, -1, -1, -1, -1, -1, -1, -1 }; |
133 |
static int probe_ignore_syscalls[8] = { -1, -1, -1, -1, -1, -1, -1, -1 }; |
|
|
134 |
#ifdef module_param_array |
135 |
module_param_array(probe_ignore_syscalls, int, NULL, 0); |
136 |
#else |
126 |
MODULE_PARM(probe_ignore_syscalls, "1-8i"); |
137 |
MODULE_PARM(probe_ignore_syscalls, "1-8i"); |
|
|
138 |
#endif |
127 |
MODULE_PARM_DESC(probe_ignore_syscalls, "Syscalls to ignore in table checks"); |
139 |
MODULE_PARM_DESC(probe_ignore_syscalls, "Syscalls to ignore in table checks"); |
128 |
|
140 |
|
129 |
#ifdef OSI_PROBE_DEBUG |
141 |
#ifdef OSI_PROBE_DEBUG |