From: Arnd Bergmann <arnd@arndb•de>
To: linuxppc-dev@ozlabs•org
Cc: "Meswani, Mitesh" <mmeswani@utep•edu>
Subject: Re: Intercept System call using Kernel module is 2.6 kernel
Date: Tue, 6 Jun 2006 19:48:56 +0200 [thread overview]
Message-ID: <200606061948.56627.arnd@arndb.de> (raw)
In-Reply-To: <C26C730943E01145B4F89E37FE0A022002BBC7A6@itdsrvmail02.utep.edu>
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 <><
next prev parent reply other threads:[~2006-06-06 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <C26C730943E01145B4F89E37FE0A022002BBC7A2@itdsrvmail02.utep.edu>
2006-06-06 16:25 ` Intercept System call using Kernel module is 2.6 kernel Meswani, Mitesh
2006-06-06 17:48 ` Arnd Bergmann [this message]
2006-06-06 17:02 Jeff.Fellin
-- strict thread matches above, loose matches on Subject: below --
2006-06-06 17:14 Jenkins, Clive
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606061948.56627.arnd@arndb.de \
--to=arnd@arndb$(echo .)de \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=mmeswani@utep$(echo .)edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox