Re: ldd runs linux programs

2013-08-03 Thread Konstantin Belousov
On Sun, Aug 04, 2013 at 12:17:34AM -0400, Mark Johnston wrote: > I spent some time trying to figure out if there was any reason for this > and didn't come up with anything. Does the patch below look ok? It just > adds a couple of macros to set both the native and 32-bit compat > variable. It works

Re: ldd runs linux programs

2013-08-03 Thread Mark Johnston
On Thu, Aug 01, 2013 at 04:39:35PM +0300, Konstantin Belousov wrote: > On Wed, Jul 31, 2013 at 10:12:31PM -0400, Mark Johnston wrote: > > On Mon, Jul 29, 2013 at 10:54:49PM +0200, Mateusz Guzik wrote: > > > On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: > > > > > 127276 suggests run

Re: ldd runs linux programs

2013-08-01 Thread Konstantin Belousov
On Wed, Jul 31, 2013 at 10:12:31PM -0400, Mark Johnston wrote: > On Mon, Jul 29, 2013 at 10:54:49PM +0200, Mateusz Guzik wrote: > > On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: > > > > 127276 suggests running the binary as is (which I don't like) and > > > > achieves this with a h

Re: ldd runs linux programs

2013-07-31 Thread Mark Johnston
On Mon, Jul 29, 2013 at 10:54:49PM +0200, Mateusz Guzik wrote: > On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: > > > 127276 suggests running the binary as is (which I don't like) and > > > achieves this with a hacky way. So if we really want to do this, the > > > patch should be re

Re: ldd runs linux programs

2013-07-31 Thread John Baldwin
On Wednesday, July 31, 2013 2:36:14 am Julian Elischer wrote: > On 7/30/13 4:54 AM, Mateusz Guzik wrote: > > On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: > >>> 127276 suggests running the binary as is (which I don't like) and > >>> achieves this with a hacky way. So if we really w

Re: ldd runs linux programs

2013-07-30 Thread Julian Elischer
On 7/30/13 5:37 AM, David Chisnall wrote: On 29 Jul 2013, at 21:54, Mateusz Guzik wrote: Well, there was linux_kdump in ports but it apparently got obsolete as necessary support for included in our regular kdump. So it may make sense to teach our ldd how to deal with Linux binaries for consis

Re: ldd runs linux programs

2013-07-30 Thread Julian Elischer
On 7/30/13 4:54 AM, Mateusz Guzik wrote: On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: 127276 suggests running the binary as is (which I don't like) and achieves this with a hacky way. So if we really want to do this, the patch should be reworked to detect Linux binaries properl

Re: ldd runs linux programs

2013-07-29 Thread David Chisnall
On 29 Jul 2013, at 21:54, Mateusz Guzik wrote: > Well, there was linux_kdump in ports but it apparently got obsolete as > necessary support for included in our regular kdump. > > So it may make sense to teach our ldd how to deal with Linux binaries > for consistency, but its unclear for me if th

Re: ldd runs linux programs

2013-07-29 Thread Mateusz Guzik
On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: > > 127276 suggests running the binary as is (which I don't like) and > > achieves this with a hacky way. So if we really want to do this, the > > patch should be reworked to detect Linux binaries properly. > > > > In general we should

Re: ldd runs linux programs

2013-07-29 Thread Mark Johnston
On Mon, Jul 29, 2013 at 10:12:54AM +0200, Mateusz Guzik wrote: > On Mon, Jul 29, 2013 at 10:33:53AM +0800, Julian Elischer wrote: > > 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 Fr

Re: ldd runs linux programs

2013-07-29 Thread Mateusz Guzik
On Mon, Jul 29, 2013 at 10:33:53AM +0800, Julian Elischer wrote: > 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

Re: ldd runs linux programs

2013-07-28 Thread Julian Elischer
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

Re: ldd runs linux programs

2013-07-28 Thread Mateusz Guzik
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.fre

Re: ldd runs linux programs

2013-07-28 Thread Sergey V. Dyatko
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+0

ldd runs linux programs

2013-07-28 Thread Gennady Proskurin
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 g...@gpr.nnz-home.ru:/usr/obj/usr/