Re: execturing libc

2005-02-10 Thread Andrew Suffield
On Wed, Feb 09, 2005 at 11:27:32PM -0800, Steve Langasek wrote: > On Thu, Feb 10, 2005 at 06:17:01PM +1100, Paul Hampson wrote: > > > It still lets you execute files that don't have the executable flag > > > set like libc. It's a different bug but it's still there. > > > Is that a bug? I can run -

Re: execturing libc

2005-02-09 Thread Steve Langasek
On Thu, Feb 10, 2005 at 06:17:01PM +1100, Paul Hampson wrote: > > It still lets you execute files that don't have the executable flag > > set like libc. It's a different bug but it's still there. > Is that a bug? I can run -x perl scripts with perl so > why not -x ELF scripts with /lib/ld-linux.s

Re: execturing libc

2005-02-09 Thread Paul Hampson
On Fri, Feb 04, 2005 at 10:37:03PM +0100, Goswin von Brederlow wrote: > Henrique de Moraes Holschuh <[EMAIL PROTECTED]> writes: > > > On Fri, 04 Feb 2005, Goswin von Brederlow wrote: > >> The way to circumvent a noexec is to call the dynamic linker like I > >> did for libc: > >> > >> /lib64/ld-li

Re: execturing libc

2005-02-04 Thread Goswin von Brederlow
Henrique de Moraes Holschuh <[EMAIL PROTECTED]> writes: > On Fri, 04 Feb 2005, Goswin von Brederlow wrote: >> The way to circumvent a noexec is to call the dynamic linker like I >> did for libc: >> >> /lib64/ld-linux-x86-64.so.2 > > Is it? In sid, ia32: > /lib/ld-linux.so.2 ./test > ./test: err

Re: execturing libc

2005-02-04 Thread Wouter Verhelst
Op vr, 04-02-2005 te 15:54 +0100, schreef Goswin von Brederlow: > Wouter Verhelst <[EMAIL PROTECTED]> writes: > > There's also the fact that an executable libc is a nice way to > > circumvent a 'noexec' restriction on a mount point :-) > > How does libc help? [...] > Libc doesn't execute its argum

Re: execturing libc

2005-02-04 Thread Henrique de Moraes Holschuh
On Fri, 04 Feb 2005, Goswin von Brederlow wrote: > The way to circumvent a noexec is to call the dynamic linker like I > did for libc: > > /lib64/ld-linux-x86-64.so.2 Is it? In sid, ia32: /lib/ld-linux.so.2 ./test ./test: error while loading shared libraries: ./test: failed to map segment from

Re: execturing libc

2005-02-04 Thread Goswin von Brederlow
Wouter Verhelst <[EMAIL PROTECTED]> writes: > On Thu, Feb 03, 2005 at 04:31:02PM +0100, Goswin von Brederlow wrote: >> [EMAIL PROTECTED]:~% /lib64/ld-linux-x86-64.so.2 /lib/libc-2.3.2.so >> GNU C Library stable release version 2.3.2, by Roland McGrath et al. >> Copyright (C) 2003 Free Software Fo

Re: execturing libc

2005-02-04 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > I don't think libc has to be executable; simply > running /lib/ld-linux.so.2 /file/on/noexec/partition will work just > fine. I think recent ynamic linkers prevent this from beeing abused on noexec media. However there is no reliable way to check any ex

Re: execturing libc

2005-02-04 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > There's also the fact that an executable libc is a nice way to > circumvent a 'noexec' restriction on a mount point :-) Are you refering to the ld.so trick which use to work or another one? Greetings Bernd -- To UNSUBSCRIBE, email to [EMAIL PROTECTED

Re: execturing libc

2005-02-04 Thread Brian M. Carlson
On Fri, 2005-02-04 at 09:20 +0100, Wouter Verhelst wrote: > On Thu, Feb 03, 2005 at 04:31:02PM +0100, Goswin von Brederlow wrote: > > [EMAIL PROTECTED]:~% /lib64/ld-linux-x86-64.so.2 /lib/libc-2.3.2.so > > GNU C Library stable release version 2.3.2, by Roland McGrath et al. > > Copyright (C) 2003

Re: execturing libc

2005-02-04 Thread Wouter Verhelst
On Thu, Feb 03, 2005 at 04:31:02PM +0100, Goswin von Brederlow wrote: > [EMAIL PROTECTED]:~% /lib64/ld-linux-x86-64.so.2 /lib/libc-2.3.2.so > GNU C Library stable release version 2.3.2, by Roland McGrath et al. > Copyright (C) 2003 Free Software Foundation, Inc. > This is free software; see the so

Re: execturing libc

2005-02-03 Thread Goswin von Brederlow
Andreas Rottmann <[EMAIL PROTECTED]> writes: > Adrian von Bidder <[EMAIL PROTECTED]> writes: > >> On Wednesday 02 February 2005 06.35, Brian M. Carlson wrote: >> >>> I think you meant to ask, "Why would anyone want to execute the C >>> library?" >> >>> [EMAIL PROTECTED]:~$ /lib/ld-linux.so.2 /lib/

Re: execturing libc

2005-02-03 Thread Andreas Rottmann
Adrian von Bidder <[EMAIL PROTECTED]> writes: > On Wednesday 02 February 2005 06.35, Brian M. Carlson wrote: > >> I think you meant to ask, "Why would anyone want to execute the C >> library?" > >> [EMAIL PROTECTED]:~$ /lib/ld-linux.so.2 /lib/libc.so.6 > > Ok, this is off topic for this thread, bu

execturing libc (was: Re: Who could be able to help SW vendors to support Debian?)

2005-02-02 Thread Adrian von Bidder
On Wednesday 02 February 2005 06.35, Brian M. Carlson wrote: > I think you meant to ask, "Why would anyone want to execute the C > library?" > [EMAIL PROTECTED]:~$ /lib/ld-linux.so.2 /lib/libc.so.6 Ok, this is off topic for this thread, but still, strangely: [EMAIL PROTECTED]:~$ /lib/ld-2.3.2.s