linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel hook for open
@ 2000-11-06 13:55 Catalin BOIE
  2000-11-06 14:57 ` Erik Mouw
  0 siblings, 1 reply; 9+ messages in thread
From: Catalin BOIE @ 2000-11-06 13:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-admin

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 example:
If I use function getpwent (that is in a so library) and my home
made .so library that overwrite "open" function and is in
/etc/ld.so.preload file it doesn't work.
Of course, if I use open ("/etc/hosts") the so library execute my
function. 

If it doesn't exist will be nice to have something like this.

Thanks in advance!

---
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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-11-07 11:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2000-11-07 10:53       ` Catalin BOIE
2000-11-07 11:06       ` Tigran Aivazian
2000-11-07 11:09         ` Tigran Aivazian

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).