Intercept System call using Kernel module is 2.6 kernel

Arnd Bergmann arnd at arndb.de
Wed Jun 7 03:48:56 EST 2006


Am Tuesday 06 June 2006 18:25 schrieb Meswani, Mitesh:
> Any help and ideas are highly appreciated.  

Tell your professor that the task you were given is 

a) pointless, as you wouldn't use this kind of thing to
   solve an actual problem other than bad OS design
   homework.
b) not a correct approach regarding maintainability, since
   you can't tell for an arbitrary kernel version if
   the particular syscall you're abusing is now used for
   something else.

As a replacement task, choose one or more of the following:

- implement a syscall by _recompiling_ the kernel and call
  that from your user application.
- write a misc device driver that exposes a device to
  do ioctl() on.
- create a file in each of sysfs, procfs and debugfs to
  do your operation on, using read() and write().
- use a netlink socket for a two way communication with
  a kernel module.

	Arnd <><



More information about the Linuxppc-dev mailing list