Sidebar to the getent group: LD_PRELOAD

David Collier-Brown davecb at canada.sun.com
Fri Feb 15 06:00:11 GMT 2002


> #strace getent group
> execve("/usr/bin/getent", ["getent", "group"], [/* 24 vars */]) = 0
> uname({sys="Linux", node="rht-as", ...}) = 0
> brk(0)                                  = 0x804c728
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)

	Interesting!  glibc2 really does have a preload
	mechanism, it's just not run from an LD_PRELOAD=
	environment variable...  This isn't usefull to
	us, but it might be to Andrew...

	Previously, smbsh ran on Linux too, but the
	glibc2 team removed the (required!) LD_PRELOAD
	functionality. 

--dave
-- 
David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering      | some people and astonish the rest.
Americas Customer Engineering, |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba-technical mailing list