OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: mmap semantics (kernel/975)

From: Ted Unangst (teduzeitbombe.org)
Date: Mon Feb 02 2004 - 11:51:02 CST


On Mon, 2 Feb 2004, Tobias Oberstein wrote:

> "The mapping established by mmap() shall replace any previous mappings
> for those whole pages containing any part of the address space of the
> process starting at pa and continuing for len bytes."
>
> That is, the second mmap "shall" replace the first, and thus the
> changes "shall" show up. OK. I'm puzzled what they mean by "shall";)

no, it replaces it if you specify a hint and MAP_FIXED. no hint, no
previous mapping for those pages, no replacement.

> > >Synopsis: mmap does not detect file changes.
> >
> > from gnats i've learned that "kernel/975" is closed
> > since 2001. the comment even says it is fixed.

reload and scroll down to the bottom. :)

--
quit whining you haven't done anything wrong
because frankly you haven't done much of anything