Date: Sat, 17 Jan 1998 14:27:17 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: John Birrell <jb@freebsd1.cimlogic.com.au> Cc: jdp@polstra.com (John Polstra), hackers@FreeBSD.ORG Subject: Re: dladdr hax Message-ID: <199801172227.OAA06497@rah.star-gate.com> In-Reply-To: Your message of "Sun, 18 Jan 1998 08:14:22 %2B1100." <199801172114.IAA15682@freebsd1.cimlogic.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Not sure that I understand whats going on . when the kernel loads an image it has the full path so the question now is where do we save the path -- the most intuitive place is the proc structure. Cheers, Amancio > John Polstra wrote: > > If you will come up with (or suggest) a solution to finding the > > pathname of the main program, then I will add that into my version and > > commit it. And puhleeeze, don't suggest the hack of searching each of > > the directories in $PATH for argv[0]. > > What about adding some code to the namei() interface and set aside a > copy of the path in execve() (in kern_exec.c)? > > Regards, > > -- > John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org > CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801172227.OAA06497>