Re: Kernel hook for open

2000-11-07 Thread Tigran Aivazian
On Tue, 7 Nov 2000, Tigran Aivazian wrote: > To test Y2k readiness of programs one simply can use my timetravel kernel > module. No, doing things in userspace is far more complex and less > reliable and also simply not good enough (because doesn't cover the case yes, yes, I am aware of

Re: Kernel hook for open

2000-11-07 Thread Tigran Aivazian
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 Pr

Re: Kernel hook for open

2000-11-07 Thread Catalin BOIE
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 t

Re: Kernel hook for open

2000-11-07 Thread Catalin BOIE
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 Pr

Re: Kernel hook for open

2000-11-06 Thread Michael Vines
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 Pr

Re: Kernel hook for open

2000-11-06 Thread Erik Mouw
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.linuxdo

Re: Kernel hook for open

2000-11-06 Thread Michael Vines
On Mon, 6 Nov 2000, Erik Mouw wrote: > On Mon, Nov 06, 2000 at 03:55:41PM +0200, Catalin BOIE wrote: > > I wish to know if there is something like a kernel hook for open function. > > I want to monitor a file (someting like watchdog on Solaris) and to read > > from my own

Re: Kernel hook for open

2000-11-06 Thread Erik Mouw
On Mon, Nov 06, 2000 at 03:55:41PM +0200, Catalin BOIE wrote: > I wish to know if there is something like a kernel hook for open function. > I want to monitor a file (someting like watchdog on Solaris) and to read > from my own process (module?) and from the file. I don't know wh

Kernel hook for open

2000-11-06 Thread Catalin BOIE
Hi, guys! I wish to know if there is something like a kernel hook for open function. I want to monitor a file (someting like watchdog on Solaris) and to read from my own process (module?) and from the file. I tried with LD_SO_PRELOAD but it haven't any effect on the so libraries. For ex