From owner-freebsd-current@FreeBSD.ORG Sun Jul 28 19:38:51 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 49C371AB for ; Sun, 28 Jul 2013 19:38:51 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D241D2763 for ; Sun, 28 Jul 2013 19:38:50 +0000 (UTC) Received: by mail-ea0-f175.google.com with SMTP id m14so571881eaj.6 for ; Sun, 28 Jul 2013 12:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=nAeHFgz5+K6pHqZLaeQ9Fi2twNJbJaXdnVQhcpyE+w0=; b=K09v+eY/p8BT7M1b9eeM/Yhm1MpTv+PcwcMzzn4A+LOEDx90SGp1ljUAadxHfu6eeO m4Z5KCqNmkIVFAIf/cJB1xwqc1oSoKewIleZAA7IfiLABjA6wvWczlH+nvk+/90Bd2yN gls1CE9XPgfH2no1/Z1CxDscLPgzc8Wf1Wj7YEeTXQrZsbKU8d/cd1VowBuqlmrtAmAt MrHwzMfZAdVhmn5i+EFbWC+LdCmajO4tG5VrjSvSbMk14YstZfL9yg9NGRVNEwJ1rAhu hjena8R9v9d8evNR9MHOgAL5Z65lbSG6S/4nMOgl8TRVFfV7XBosHDFjC8zDSw6qtEmT lnGQ== X-Received: by 10.14.224.129 with SMTP id x1mr9483723eep.61.1375040329106; Sun, 28 Jul 2013 12:38:49 -0700 (PDT) Received: from laptop.minsk.domain ([178.125.200.119]) by mx.google.com with ESMTPSA id p49sm96937222eeu.2.2013.07.28.12.38.47 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 28 Jul 2013 12:38:48 -0700 (PDT) Date: Sun, 28 Jul 2013 22:38:46 +0300 From: "Sergey V. Dyatko" To: Gennady Proskurin Subject: Re: ldd runs linux programs Message-ID: <20130728223846.69332260@laptop.minsk.domain> In-Reply-To: <20130728193110.GB17514@gpr.nnz-home.ru> References: <20130728193110.GB17514@gpr.nnz-home.ru> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 28 Jul 2013 19:38:51 -0000 On Sun, 28 Jul 2013 23:31:10 +0400 Gennady Proskurin wrote: > Hello. > When linux binary is passed to FreeBSD's ldd as argument, this binary > is executed. I'm sure this is bug :) > (with security involved) > > % uname -a > FreeBSD gpr.nnz-home.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 > r253701+0a032f5: Sun Jul 28 07:43:10 MSK 2013 > gpr@gpr.nnz-home.ru:/usr/obj/usr/src/freebsd-head/sys/GPR amd64 > > % which ldd > /usr/bin/ldd > > % file /compat/linux/usr/bin/sqlite3 > /compat/linux/usr/bin/sqlite3: ELF 32-bit LSB executable, Intel > 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), > for GNU/Linux 2.6.9, > BuildID[sha1]=0xd44ea68c3032844c0daf80a58ec18fe464bcdbe3, stripped > > % ldd /compat/linux/usr/bin/sqlite3 > /compat/linux/usr/bin/sqlite3: > SQLite version 3.5.9 > Enter ".help" for instructions > sqlite> > that is not a news, I suppose. 1st time I see that when I run pkg_libchk from bsdadminscritpts 2-3 years ago %file `which flash-player-properties` /usr/local/bin/flash-player-properties: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped %ldd `which flash-player-properties` /usr/local/bin/flash-player-properties: (process:2239): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. -- wbr, tiger