From owner-freebsd-hackers Sat Jan 17 14:27:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA28226 for hackers-outgoing; Sat, 17 Jan 1998 14:27:46 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.178]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA28220 for ; Sat, 17 Jan 1998 14:27:37 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id OAA06497; Sat, 17 Jan 1998 14:27:17 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199801172227.OAA06497@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: John Birrell cc: jdp@polstra.com (John Polstra), hackers@FreeBSD.ORG Subject: Re: dladdr hax In-reply-to: Your message of "Sun, 18 Jan 1998 08:14:22 +1100." <199801172114.IAA15682@freebsd1.cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Jan 1998 14:27:17 -0800 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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 >