Making System Call Table Exportable and Readable

Making System Call Table Exportable and Readable - Making...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Making System Call Table Exportable and Readable Starting Linux 2.6, the sys_call_table is no longer exportable to KLMs. To be able to modify it you need to: 5. In /usr/src/linux-3./arch/x86/kernel/entry_32.S make the sys_call_table writable so it can be modified during interception. .section .rodata,"a" #include "syscall_table_32.S" And convert it to .section .data,"aw“ #include "syscall_table_32.S"
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Making System Call Table Exportable and Readable 6. In the file /usr/src/linux- 3.0/kernel/kallsyms.c export the sys_call_table Find EXPORT_SYMBOL(__print_symbol); And insert below extern void * sys_call_table; EXPORT_SYMBOL(sys_call_table);
Background image of page 2
Adding a new System Call 7. Finally recompile the kernel again. % cd /usr/src/linux-3.0 % make % make modules_install install Then reboot your machine, press F2 multiple times, and use grub to select your kernel.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Task Struct Processes are represented by a collection of struct task_struct. The number of threads is set dynamically based on the
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

Making System Call Table Exportable and Readable - Making...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online