diff --git a/examples/Makefile b/examples/Makefile index 49c17ae..c17cce5 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -16,7 +16,7 @@ obj-m += print_string.o obj-m += kbleds.o obj-m += sched.o obj-m += chardev2.o -obj-m += syscall_steal.o +obj-m += syscall-steal.o obj-m += intrpt.o obj-m += cryptosha256.o obj-m += cryptosk.o diff --git a/examples/syscall_steal.c b/examples/syscall-steal.c similarity index 100% rename from examples/syscall_steal.c rename to examples/syscall-steal.c diff --git a/lkmpg.tex b/lkmpg.tex index f16470c..e3c3dd5 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -1491,7 +1491,7 @@ $ sudo grep sys_call_table /proc/kallsyms ffffffff82000280 R x32_sys_call_table ffffffff820013a0 R sys_call_table ffffffff820023e0 R ia32_sys_call_table -$ sudo insmod syscall_steal.ko sym=0xffffffff820013a0 +$ sudo insmod syscall-steal.ko sym=0xffffffff820013a0 \end{verbatim} Using the address from \verb|/boot/System.map|, be careful about \verb|KASLR| (Kernel Address Space Layout Randomization). @@ -1562,7 +1562,7 @@ Note that all the related problems make syscall stealing unfeasible for producti In order to keep people from doing potential harmful things \cpp|sys_call_table| is no longer exported. This means, if you want to do something more than a mere dry run of this example, you will have to patch your current kernel in order to have \cpp|sys_call_table| exported. -\samplec{examples/syscall.c} +\samplec{examples/syscall-steal.c} \section{Blocking Processes and threads} \label{sec:blocking_process_thread}