[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#644788: Bug#654116: RFH: screen -- terminal multiplexor with VT100/ANSI terminal emulation


Roger Leigh wrote:
[/tmp mounted noexec]
> > /run/shm (IIRC formerly /dev/shm) likely would be an
> > alternative option, too.
> No, it would not.  This directory is reserved for the eglibc
> POSIX SHM/SEM interfaces.

Thanks for this explanation. It's the first time I read or hear about
the purpose of this mountpoint although I wondered about its purpose
for years now. (But never actively tried to find out. :-)

Bastian Blank wrote:
> On Tue, Jan 03, 2012 at 10:05:46AM +0000, Roger Leigh wrote:
> > If you really need to use a filesystem mounted noexec, just run
> > the binary via /lib/ld.so (you'll need to get the real location
> > from e.g. ldd).  Something like:
> The kernel does not allow executable mappings from noexec filesystems,
> so this does not work.
> | $ /lib64/ld-linux-x86-64.so.2 ./ls 
> | ./ls: error while loading shared libraries: ./ls: failed to map segment from shared object: Operation not permitted

Thanks for the comment. Cc'ing the relevant bug again, as this is
crucial information when I work on fixing the bug.

Roger Leigh wrote:
> Or query for DT_INTERP directly and run that.

Never heard of that before. Searching the web just found hits
indicating it seems part of the ELF header. No idea how to work with
it, though. Any hints?

		Regards, Axel
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5

Reply to: