From owner-freebsd-current@FreeBSD.ORG Mon Jul 29 02:34:04 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 0633D634 for ; Mon, 29 Jul 2013 02:34:04 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CCC892564 for ; Mon, 29 Jul 2013 02:34:03 +0000 (UTC) Received: from jre-mbp.elischer.org (etroy.elischer.org [121.45.226.51]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.6) with ESMTP id r6T2XwLK022040 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 28 Jul 2013 19:34:01 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <51F5D491.1080803@freebsd.org> Date: Mon, 29 Jul 2013 10:33:53 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Mateusz Guzik , Gennady Proskurin , freebsd-current@freebsd.org Subject: Re: ldd runs linux programs References: <20130728193110.GB17514@gpr.nnz-home.ru> <20130728204958.GA32322@dft-labs.eu> In-Reply-To: <20130728204958.GA32322@dft-labs.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 29 Jul 2013 02:34:04 -0000 On 7/29/13 4:49 AM, Mateusz Guzik wrote: > On Sun, Jul 28, 2013 at 11:31:10PM +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) >> > I have a patch for this, but never got around to commit it. > > http://people.freebsd.org/~mjg/patches/ldd-non-freebsd-ignore.diff > > If someone wants, go ahead and steal it. > For those of us that are not ldd experts, why does this happen, what's the history and what happends on Linux? I vagualy remember that linux may somehow execute something in this case but my memory is very vague on the topic.