From owner-freebsd-hackers Tue Oct 30 18:27:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by hub.freebsd.org (Postfix) with ESMTP id 4D69E37B401 for ; Tue, 30 Oct 2001 18:27:10 -0800 (PST) Received: from [192.168.69.11] (unknown [192.168.69.11]) by warez.scriptkiddie.org (Postfix) with ESMTP id B973F62D01 for ; Tue, 30 Oct 2001 18:27:08 -0800 (PST) Date: Tue, 30 Oct 2001 18:27:19 -0800 (PST) From: Lamont Granquist To: Subject: /etc/ld.so.preload? In-Reply-To: <20011031014508.47460.qmail@web14702.mail.yahoo.com> Message-ID: <20011030181830.R54298-100000@coredump.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is there anything in FreeBSD that gives this functionality? My reading of src/libexec/rtld-elf/rtld.c in both -stable and -current seems to indicate that there isn't any such functionality (i need the global functionality that LD_PRELOAD doesn't give me). I'd be willing to write a patch for it, but I'd need some guidance on what would be a proper way to fix it. I'm thinking of a patch to ldconfig to get /etc/ld.so.preload into the hints file and then to hack gethints() in rtld.c to take an argument indicating which path you want to return. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message