Re: VM_MAYREAD & VM_READ

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

 



John Navil Joseph <cs99185@nitc.ac.in> wrote:
>
> hi,
> 
> whats the difference between VM_READ and VM_MAYREAD flags ;
> 

VM_READ means that the pages may be read from.  VM_MAYREAD means that VM_READ
may be turned on via mprotect(), even if it is not turned on now.

It isn't often useful for READ, but !VM_MAYWRITE is fairly important -
we don't want users using mprotect(PROT_WRITE) to start scribbling on
libc.so.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux