[6095] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Another ld-linux.so problem

daemon@ATHENA.MIT.EDU (carson@TLA.ORG)
Sun Feb 8 14:36:36 1998

Date: 	Sat, 7 Feb 1998 20:02:31 -0500
Reply-To: carson@tla.org
From: carson@TLA.ORG
X-To:         Solar Designer <solar@FALSE.COM>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <199802080139.WAA02506@false.com>

>>>>> "Solar" == Solar Designer <solar@FALSE.COM> writes:

Solar> Is there a reason for this limited LD_PRELOAD support for setuid binaries,
Solar> does something depend on it? It looks like this was done intentionally...

Yes. SOCKSifying stupid protocols that require binding ports <1024, for
example. Assuming you install libsocks5_sh.so in /usr/lib, you can do:

$ (export LD_PRELOAD=/usr/lib/libsocks5_sh.so; rsh machine.outside.firewall
pwd)

and have it work. This is basically what the runsocks script does.

--
Carson Gaspar -- carson@cs.columbia.edu carson@tla.org carson@cugc.org
http://www.cs.columbia.edu/~carson/home.html
Queen Trapped in a Butch Body

home help back first fref pref prev next nref lref last post