lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4522B7CD.4040206@redhat.com>
Date:	Tue, 03 Oct 2006 12:19:41 -0700
From:	Ulrich Drepper <drepper@...hat.com>
To:	Stas Sergeev <stsp@...et.ru>
CC:	Arjan van de Ven <arjan@...radead.org>,
	Linux kernel <linux-kernel@...r.kernel.org>,
	Alan Cox <alan@...rguk.ukuu.org.uk>,
	Hugh Dickins <hugh@...itas.com>, Valdis.Kletnieks@...edu
Subject: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps

Stas Sergeev wrote:
> My position is simple: the ld.so problem needs a better
> solution than the current one. The current one, for example,
> still allows to use ld.so directly to execute the files for
> which you do not have an exec permission. And that's not an
> only problem...

You really don't get it, do you.  The way ld.so works can be implemented
in many other forms with other programs.  With some time and energy you
likely can write a perl or python script to do it.  "ld.so" is a place
holder for everything userlevel that wants to map executables.


> And allow an attacker to store his files on that partition,
> and then execute them.

They can do it anyway.


> I have already proposed another solution for ld.so problem
> 3 times.

And for obvious reasons I ignored it.

noexec mounts the way _you_ want them are completely, utterly useless.
nonexec mounts as they are today plus an upcoming mprotect patch give
fine grained control.  You have to use additional mechanism like SELinux
to fill in all the holes but that's OK.  nonexec mounts give a great
deal more of flexibility.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


Download attachment "signature.asc" of type "application/pgp-signature" (252 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ