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: <4528C06E.5090902@aknet.ru>
Date:	Sun, 08 Oct 2006 13:10:06 +0400
From:	Stas Sergeev <stsp@...et.ru>
To:	Jeremy Fitzhardinge <jeremy@...p.org>
Cc:	Alan Cox <alan@...rguk.ukuu.org.uk>,
	Jakub Jelinek <jakub@...hat.com>,
	Arjan van de Ven <arjan@...radead.org>,
	Linux kernel <linux-kernel@...r.kernel.org>,
	Hugh Dickins <hugh@...itas.com>,
	Ulrich Drepper <drepper@...hat.com>
Subject: Re: [patch] honour MNT_NOEXEC for access()

Hi.

Jeremy Fitzhardinge wrote:
>> ld.so to start using the access(R_OK | X_OK) before
>> open().
> Not really.  If you want to do something along those lines it would be 
> better to add a new open flag called something like O_RDEXONLY which 
> would require r-x effective file permissions, and allow 
> PROT_READ|PROT_EXEC mmaps (though for that to be really useful, you'd 
> need to make an O_RDONLY fd not allow PROT_EXEC mmaps, which would break 
> a few things).
It will break _many_ things - my intention is to find a
solution for ld.so that won't break things at all. The
current solution (the hack that makes mmap(PROT_EXEC) to
fail on a "noexec" mounts) breaks just too much and doesn't
solve the problem of executing the files without an exec perm.

But your idea about playing with the flags is interesting.
What if the currently-unused MAP_EXECUTABLE flag became a
way for the program to express that it needs an exec perm,
and so the mmap should fail if there is none? I think ld.so
will be happy using such a flag...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ