Anyone tried building smbsh on Linux lately?

Steve Langasek vorlon at netexpress.net
Sat Mar 23 07:55:02 GMT 2002


On Sat, Mar 23, 2002 at 10:43:05AM -0500, David Collier-Brown wrote:
> Steve Langasek wrote:

> > On Fri, Mar 22, 2002 at 12:25:40PM -0500, David Collier-Brown wrote:
> > >   A colleague (Fred Weigel) just prototyped an interposer
> > > library on Linux 2.2 using LD_PRELOAD, which worked
> > > happily, substantially the same as on Solaris.
> > >   In addition, dlsym(RTLD_NEXT,...) seems to be
> > > supported.
> > >   Any other things necessary for smbsh on Linux?

> > On Linux, that sounds to me like it's everything that's needed.  As a
> > general-purpose rewrite of smbsh that works on multiple platforms, I
> > would guess that there needs to be something in the configure script to
> > figure out the path to the appropriate C library.

> 	As long as you're not doing your dlsyms in a vendor-
> 	specific _init function, you can use the RTLD_NEXT
> 	option to dlsym.  
> 	Failing that, use syscall and don't call the libraries at all.

Ah, I guess I should've looked at what RTLD_NEXT actually means.  Well, 
that solves that problem, doesn't it. :)

Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020323/75d75565/attachment.bin


More information about the samba-technical mailing list