Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps

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

 



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....

Attachment: pgpsMPxueStzB.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux