Date: Sun, 28 Jul 2013 22:38:46 +0300 From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com> To: Gennady Proskurin <gprspb@mail.ru> Cc: freebsd-current@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Jul 2013 23:31:10 +0400 Gennady Proskurin <gprspb@mail.ru> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130728223846.69332260>