RE: How to customize Linux rmdir system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bill,

I am a recruiter located here in Seattle and I am contacting you on
behalf of my client, Amazon.com....Would you be interested in hearing
about an opportunity there?

Regards,

~John Fabello

425-456-8900


-----Original Message-----
From: Bill Rugolsky Jr. [mailto:brugolsky@xxxxxxxxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, October 08, 2003 2:04 PM
To: redhat-devel-list@xxxxxxxxxx
Cc: Linse Pallan
Subject: Re: How to customize Linux rmdir system call


On Wed, Oct 08, 2003 at 03:39:21PM -0400, Linse Pallan wrote:
> Can anyone help me ?

You can avoid rebuilding glibc by implementing the functions that you
want to override in a shared object, and using system-wide preloading by
specifying the library in /etc/ld.so.preload.  See the man page ld.so(8)

That won't catch statically-linked binaries, but neither will rebuilding
glibc, unless you relink all of the static binaries.

As for how to write an ELF interposer, see the following article. It's
about Solaris, but applies equally to Linux -- just be aware that gcc
requires different args that Sun CC for producing shared objects:

   http://developers.sun.com/solaris/articles/lib_interposers.html

The Program-Library-HOWTO details how to create a shared library on
Linux using gcc:

 
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Pr
ogram-Library-HOWTO.html#AEN95


Regards,

	Bill Rugolsky


_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list


_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux