Skip to content

Commit

Permalink
Enforce consistent name scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Dec 22, 2023
1 parent 7f94878 commit e61a0d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ \section{System Calls}
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).
Expand Down Expand Up @@ -1562,7 +1562,7 @@ \section{System Calls}
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}
Expand Down

2 comments on commit e61a0d6

@keytouch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might change this as well

/*
* syscall_steal.c
*

@keytouch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @jserv

Please sign in to comment.