From: Catalin BOIE <util@deuroconsult.ro>
To: Michael Vines <mjvines@undergrad.math.uwaterloo.ca>
Cc: Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL>, linux-kernel@vger.kernel.org
Subject: Re: Kernel hook for open
Date: Tue, 7 Nov 2000 12:58:15 +0200 (EET) [thread overview]
Message-ID: <Pine.LNX.4.20.0011071253280.6730-100000@marte.Deuroconsult.ro> (raw)
In-Reply-To: <Pine.LNX.4.10.10011061234230.12539-100000@barkingdogstudios.com>
On Mon, 6 Nov 2000, Michael Vines wrote:
> On Mon, 6 Nov 2000, Erik Mouw wrote:
>
> > On Mon, Nov 06, 2000 at 10:11:11AM -0500, Michael Vines wrote:
> > > On Mon, 6 Nov 2000, Erik Mouw wrote:
> > > > Use LD_PRELOAD instead.
> > >
> > > You could also write a simple kernel module that replaces the open system
> > > call. See the Linux Kernel Module Programming Guide for details.
> > > http://www.linuxdoc.org/guides.html
> > >
> > > specifically http://www.linuxdoc.org/LDP/lkmpg/node20.html
> >
> > Why difficult when it can be done easy? To test the Y2K readiness of
> > some programs (yeah, Y2K, remember?), I wrote a small library that
> > overloaded the time() and gettimeofday() syscalls in about 100 lines of
> > code. No kernel modules needed, no root privileges needed, just set the
> > environment variable LD_PRELOAD and off you go.
>
> Well the question was posted to the kernel mailing list and not the glibc
> mailing list after all :)
>
> Michael
>
Yes, you are right. It was my fault. I should have send my mail to both
kernel and glibc list.
I just want to intercept open call. That's all. I don't care much if I
must do a kernel module or I use PRELOAD. Probably is better to use
LD_PRELOAD.
Thank you all for your kindly help! You are great! All of you! Thanks!
---
Catalin(ux) BOIE
catab@deuroconsult.ro
A new Linux distribution: http://l13plus.deuroconsult.ro
http://www2.deuroconsult.ro/~catab
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-07 10:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-06 13:55 Kernel hook for open Catalin BOIE
2000-11-06 14:57 ` Erik Mouw
2000-11-06 15:11 ` Michael Vines
2000-11-06 17:20 ` Erik Mouw
2000-11-06 17:40 ` Michael Vines
2000-11-07 10:58 ` Catalin BOIE [this message]
2000-11-07 10:53 ` Catalin BOIE
2000-11-07 11:06 ` Tigran Aivazian
2000-11-07 11:09 ` Tigran Aivazian
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=Pine.LNX.4.20.0011071253280.6730-100000@marte.Deuroconsult.ro \
--to=util@deuroconsult.ro \
--cc=J.A.K.Mouw@ITS.TUDelft.NL \
--cc=linux-kernel@vger.kernel.org \
--cc=mjvines@undergrad.math.uwaterloo.ca \
/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;
as well as URLs for NNTP newsgroup(s).