Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 1998 18:00:58 -0600 (CST)
From:      Damon Anton Permezel <dap@damon.com>
To:        tlambert@primenet.com (Terry Lambert)
Cc:        dap@damon.com, hasty@rah.star-gate.com, tlambert@primenet.com, nate@mt.sri.com, freebsd-hackers@FreeBSD.ORG
Subject:   Re: dladdr hax
Message-ID:  <199801100000.SAA25218@damon.com>
In-Reply-To: <199801092252.PAA00624@usr04.primenet.com> from Terry Lambert at "Jan 9, 98 10:52:16 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
"Terry Lambert sez: "
> > My understanding of it is that it requires the full path be kept by execve().
> Actually, this isn't true.  It's pretty trivial to write and run a
> dladdr using program on a solaris box.

I just realized that on Solaris, it does appear to return argv[0].
This is why they put the hack in their wrapper scripts to attempt to pass the
full path name to the shell, which will obligingly put it in argv[0].

OK.  I concede that I am an idiot.  Thankyou very much.

Cheers,
Damon.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801100000.SAA25218>