From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 19:05:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D5316A4CF; Fri, 13 Feb 2004 19:05:37 -0800 (PST) Received: from coruscant.rfc1149.org (p15103838.pureserver.info [217.160.130.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997AA43D1D; Fri, 13 Feb 2004 19:05:37 -0800 (PST) (envelope-from arne@rfc2549.org) Received: by coruscant.rfc1149.org (Postfix, from userid 110) id 26DC53CF8; Sat, 14 Feb 2004 04:05:34 +0100 (CET) Received: from kamino.rfc1149.org (kamino.rfc1149.org [2001:8d8:81:11::2]) by coruscant.rfc1149.org (Postfix) with ESMTP id BF8B03CE7; Sat, 14 Feb 2004 04:05:31 +0100 (CET) Received: by kamino.rfc1149.org (Postfix, from userid 1001) id E0ABA621C; Sat, 14 Feb 2004 04:05:25 +0100 (CET) To: Kimura Fuyuki In-Reply-To: <86isiaa03q.wl%fuyuki@nigredo.org> (Kimura Fuyuki's message of "Sat, 14 Feb 2004 11:03:37 +0900") References: <86n07oa7sa.wl%fuyuki@nigredo.org> <86isiaa03q.wl%fuyuki@nigredo.org> From: Arne Schwabe Date: Sat, 14 Feb 2004 04:05:25 +0100 Message-ID: <86oes2cqdm.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on coruscant.rfc1149.org X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Level: cc: kan@FreeBSD.ORG cc: freebsd-current@freebsd.org cc: jdp@polstra.com Subject: Re: dynamic linker problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 03:05:37 -0000 Kimura Fuyuki writes: > OK, I more clearly point out the problem; run the following test and > think that behavior is secure/modular/comfortable or not. > > BEGIN--cut here--cut here > #!/bin/sh > > cat <<'[EOF]' >crypt.c > /* Define this function since I want to do so! */ > char *crypt_md5(const char *pw, const char *salt) > { > return "imbogus"; > } > [EOF] > > cat <<'[EOF]' >dltest.c > #include > #include > > int main(void) > { > void *h; > char *(*crypt)(const char *, const char *); > > h = dlopen("/lib/libcrypt.so", 0); At least on my system /lib/libcrypt.so does not even exist, if I change it to /lib/libcrypt.so.2 it works. Arne