Thread (2 messages) flat view 2 messages, 2 authors, 2006-06-06

Re: Intercept System call using Kernel module is 2.6 kernel

From: Arnd Bergmann <arnd@arndb.de>
Date: 2006-06-06 17:48:47

Am Tuesday 06 June 2006 18:25 schrieb Meswani, Mitesh:
Any help and ideas are highly appreciated. =C2=A0
Tell your professor that the task you were given is=20

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:

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

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help