Subject: Re: uvm_mmap.c 1.47
To: Charles M. Hannum <root@ihack.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 01/07/2001 08:04:47
On Sun, Jan 07, 2001 at 07:06:22AM +0000, Charles M. Hannum wrote:

 > It should be undone ASAP.  If you need to do something like this, do
 > it in udv_fault() instead.

You can't do it in udv_fault() -- At that point, you don't know if the
user asked for PROT_EXEC or not.  If the user asked for PROT_EXEC you
should honor it.  If the user *didn't* ask for PROT_EXEC, then why
assume that they meant it?

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>