[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200609250112.k8P1CTfZ019880@turing-police.cc.vt.edu>
Date: Sun, 24 Sep 2006 21:12:28 -0400
From: Valdis.Kletnieks@...edu
To: Stas Sergeev <stsp@...et.ru>
Cc: Ulrich Drepper <drepper@...hat.com>,
Hugh Dickins <hugh@...itas.com>, Andrew Morton <akpm@...l.org>,
Linux kernel <linux-kernel@...r.kernel.org>
Subject: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
On Sat, 23 Sep 2006 19:47:19 +0400, Stas Sergeev said:
> Hi.
>
> Ulrich Drepper wrote:
> > Definitely not. The test should stay. It does the right thing. Yes,
> > some applications might break, but this is the fault of the application.
> But why exactly? They do:
> shm_open();
> mmap(PROT_READ|PROT_WRITE|PROT_EXEC);
> and mmap fails.
> Where is the fault of an app here?
'man 2 open' reports the following error code as a possibility:
EROFS pathname refers to a file on a read-only filesystem and write
access was requested.
Are you suggesting that it's not an app's fault/problem if it tries to
open a writable file on a R/O filesystem? Because it's essentially the
same problem....
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists