From: ebiederm@xmission.com (Eric W. Biederman)
To: Andi Kleen <ak@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: Nice values for kernel modules
Date: 25 Mar 2002 00:47:27 -0700 [thread overview]
Message-ID: <m1pu1tum0g.fsf@frodo.biederman.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0203161300300.1089-100000@einstein.homenet.suse.lists.linux.kernel> <E16mICa-0006mr-00@the-village.bc.nu.suse.lists.linux.kernel> <p73d6y4187b.fsf@oldwotan.suse.de>
Andi Kleen <ak@suse.de> writes:
> Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>
> > > Ability to bypass the stupid commercial time-locked licences (at some time
> > > wordperfect demo was locked like that and my timetravel module turned a
> > > demo into full product -- users were happy, at least according to emails I
> > > received :)
> >
> > Not any more. Under the DMCA your time travel module probably makes you
> > a fugtive from US justice 8)
> >
> > In general though calling into the syscall table by hand is a bad move. If
> > the function you are calling is generically useful then its much better to
> > work out whether the real function should be exported.
>
> Some programs depends on tapping the system call table. For example private
> ice and oprofile do this for execve and other calls to know when a new
> process is started. It would be possible to add function pointers to all these
> functions, but just tapping the system call table actually looks cleaner
> to me.
>
> [yes, the approach has module unload races, but these modules tend to just
> make themselves not unloadable]
What is wrong with using ptrace? That should already give you a hook into
every syscall.
Eric
next prev parent reply other threads:[~2002-03-25 7:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.33.0203161300300.1089-100000@einstein.homenet.suse.lists.linux.kernel>
[not found] ` <E16mICa-0006mr-00@the-village.bc.nu.suse.lists.linux.kernel>
2002-03-16 22:03 ` Andi Kleen
2002-03-25 7:47 ` Eric W. Biederman [this message]
2002-03-25 8:20 ` John Levon
[not found] <Pine.LNX.4.33.0203161126130.1090-100000@einstein.homenet.suse.lists.linux.kernel>
[not found] ` <16358.1016282075@ocs3.intra.ocs.com.au.suse.lists.linux.kernel>
[not found] ` <20020316154848.GA82190@compsoc.man.ac.uk.suse.lists.linux.kernel>
2002-03-16 16:03 ` Andi Kleen
2002-03-15 23:59 Balbir Singh
2002-03-16 9:51 ` tigran
2002-03-16 10:00 ` Keith Owens
2002-03-16 10:41 ` Paul Mackerras
2002-03-16 11:27 ` Tigran Aivazian
2002-03-16 12:34 ` Keith Owens
2002-03-16 13:04 ` Tigran Aivazian
2002-03-16 13:52 ` Christoph Hellwig
2002-03-16 17:42 ` Alan Cox
2002-03-16 15:48 ` John Levon
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=m1pu1tum0g.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=ak@suse.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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
all inboxes | Powered by JetHome®