From owner-freebsd-hackers Tue Jan 7 09:33:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA00694 for hackers-outgoing; Tue, 7 Jan 1997 09:33:18 -0800 (PST) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA00687 for ; Tue, 7 Jan 1997 09:33:14 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.8.4/8.8.4) with ESMTP id SAA01164; Tue, 7 Jan 1997 18:32:36 +0100 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id SAA13030; Tue, 7 Jan 1997 18:32:07 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.4/keltia-uucp-2.9) id HAA13205; Tue, 7 Jan 1997 07:02:23 +0100 (CET) Message-ID: Date: Tue, 7 Jan 1997 07:02:23 +0100 From: roberto@keltia.freenix.fr (Ollivier Robert) To: jdp@polstra.com (John Polstra) Cc: hackers@freebsd.org Subject: Re: ld with -R weirdness References: <199701062345.PAA10680@austin.polstra.com> X-Mailer: Mutt 0.55.15 Mime-Version: 1.0 X-Operating-System: FreeBSD 3.0-CURRENT ctm#2837 In-Reply-To: <199701062345.PAA10680@austin.polstra.com>; from John Polstra on Jan 6, 1997 15:45:34 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to John Polstra: > For security reasons, LD_LIBRARY_PATH is ignored for setuid and setgid > programs. Except that when I'm testing this, the program is not yet installed and still belongs to me: -rwxr-xr-x 1 roberto staff 51047 Jan 7 01:53 suidperl* so it should respect LD_LIBRARY_PATH. > If you specify the library name explicitly ("libperl.so.3.19"), it is > recorded as a direct reference to that particular file, and no searching > is done. Directories are searched only if you specify the library > generically ("-lperl"). It is recorded in a wrong way IMHO Shared object dependencies: -llibperl.so.3.19 version 0.0 -lm version 2.0 -lc version 3.0 -lcrypt version 2.0 Even if it were recorded as libperl.so.3.19, it should be able to find it with LD_LIBRARY_PATH no ? > I should mention one other thing. If LD(1) is to be believed, there > should be no space between ld's "-R" option and the > "record-library-search-path" that follows it. (Just like the "-L" > option.) You probably should remove the "," after "-Wl,-R". It seems to work the same way with and without the ','. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #33: Sat Dec 21 12:57:17 CET 1996