This is the mail archive of the
mailing list for the glibc project.
Eliminating LD_PRELOAD ERRORs with setuid programs
- From: Peter Åstrand <astrand at cendio dot se>
- To: libc-alpha at sourceware dot org
- Date: Mon, 24 Apr 2006 14:12:50 +0200 (CEST)
- Subject: Eliminating LD_PRELOAD ERRORs with setuid programs
We are using the LD_PRELOAD mechanism like this:
This works well for both 32 and 64 bit binaries, with one exception:
setuid programs, which gives:
ERROR: ld.so: object 'libfoo.so' from LD_PRELOAD cannot be preloaded: ignored.
How can we eliminate this error message? I've found out that it's actually
possible to use LD_PRELOAD with setuid programs if the library itself is
setuid and found in a standard directory.
However, we would prefer to have LD_PRELOAD (silently) ignored for setuid
programs. How can we achieve this?
Peter Åstrand ThinLinc Chief Developer
583 30 Linköping Phone: +46-13-21 46 00