Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!brunix!doorknob!bp From: bp@cs.brown.edu (Boris Putanec) Newsgroups: comp.os.mach Subject: Re: Maximum protections and vm_protect Message-ID: Date: 13 Apr 91 19:47:54 GMT References: Sender: news@brunix.UUCP Distribution: comp Organization: Department of Computer Science, Brown University Lines: 21 In-reply-to: bp@cs.brown.edu's message of 13 Apr 91 03:36:50 GMT In article bp@cs.brown.edu (Boris Putanec) writes: Why are tasks permitted to change their maximum protections with vm_protect? Why have maximum protections at all if they can be changed to allow greater access? Shouldn't the maximum protection set by vm_map stick? [ bad example deleted ] Am I missing something? Is there another way to do it? Clearly I was missing something. The check for raising maximum protection is about 5 lines higher in the code that I quoted. Sleep deprivation can do it to you. The maximum protection set by vm_map cannot be raised by vm_protect. Exatcly what the doctor orderd. boris bp@cs.brown.edu