Andreas Jaeger wrote:
Philipp Thomas
writes: On Thu, 05 Jun 2008 14:02:09 -0500, Jim Flanagan wrote:
This method uses configure > make > checkinstall (instead of make install). Checkinstall has been dropped from openSUSE because it doesn't work anymore. Checkinstall's trick is to load a library via LD_PRELOAD that redirects all functions dealing with files. Now for installing a package you need to be root and for programs running with root privileges the dynamic loader ignores LD_PRELOAD as this would otherwise be a huge security problem.
The behaviour is: For programs being setuid root, LD_PRELOAD is ignored - or more exactly: /* The LD_PRELOAD environment variable gives list of libraries separated by white space or colons that are loaded before the executable's dependencies and prepended to the global scope list. If the binary is running setuid all elements containing a '/' are ignored since it is insecure. */
Reading this makes me confused. Am I right in thinking that LD_PRELOAD still works and in particular the checkinstall application of it would still work if either: * the checkinstall is run by root directly and the executable is *not* setuid? * or, the special library that checkinstall loads is given using a relative path rather than an absolute one? Either of these seems like a very simple way to make checkinstall work, so I suspect I'm misunderstanding something one of you has said :( Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org