Skip to content

Commit a60e84a

Browse files
committed
syscall: rename module name to syscall_steal
In Debian, the name syscall conflicts with this patch: in debian kernel source tree: debian/patches/features/x86/x86-make-x32-syscall-support-conditional.patch mailing list url: https://lore.kernel.org/lkml/1415245982.3398.53.camel@decadent.org.uk/T/#u which introduces a parameter named syscall.x32. So change our name.
1 parent 3490cd7 commit a60e84a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ obj-m += print_string.o
1616
obj-m += kbleds.o
1717
obj-m += sched.o
1818
obj-m += chardev2.o
19-
obj-m += syscall.o
19+
obj-m += syscall_steal.o
2020
obj-m += intrpt.o
2121
obj-m += cryptosha256.o
2222
obj-m += cryptosk.o

examples/syscall.c renamed to examples/syscall_steal.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* syscall.c
2+
* syscall_steal.c
33
*
44
* System call "stealing" sample.
55
*
@@ -206,7 +206,7 @@ static void disable_write_protection(void)
206206
__write_cr0(cr0);
207207
}
208208

209-
static int __init syscall_start(void)
209+
static int __init syscall_steal_start(void)
210210
{
211211
if (!(sys_call_table = acquire_sys_call_table()))
212212
return -1;
@@ -226,7 +226,7 @@ static int __init syscall_start(void)
226226
return 0;
227227
}
228228

229-
static void __exit syscall_end(void)
229+
static void __exit syscall_steal_end(void)
230230
{
231231
if (!sys_call_table)
232232
return;
@@ -246,7 +246,7 @@ static void __exit syscall_end(void)
246246
msleep(2000);
247247
}
248248

249-
module_init(syscall_start);
250-
module_exit(syscall_end);
249+
module_init(syscall_steal_start);
250+
module_exit(syscall_steal_end);
251251

252252
MODULE_LICENSE("GPL");

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ \section{System Calls}
14911491
ffffffff82000280 R x32_sys_call_table
14921492
ffffffff820013a0 R sys_call_table
14931493
ffffffff820023e0 R ia32_sys_call_table
1494-
$ sudo insmod syscall.ko sym=0xffffffff820013a0
1494+
$ sudo insmod syscall_steal.ko sym=0xffffffff820013a0
14951495
\end{verbatim}
14961496

14971497
Using the address from \verb|/boot/System.map|, be careful about \verb|KASLR| (Kernel Address Space Layout Randomization).

0 commit comments

Comments
 (0)