Subject: Re: PROT_EXEC mappings of vnodes -> VTEXT
To: Chuck Silvers <>
From: Jason R Thorpe <>
List: tech-kern
Date: 10/30/2001 09:26:29
On Tue, Oct 30, 2001 at 08:58:46AM -0800, Chuck Silvers wrote:

 > another way to get the same effect as making the file read-only would be
 > trigger coping of any copy-on-write PROT_EXEC mappings before processing
 > writes to files with any PROT_EXEC mappings.  this would take care of
 > anything that was really using the file as a shared library, since the
 > runtime linker creates all its mappings as copy-on-write.  implementing
 > this seems pretty annoying though.  maybe we can up with some other idea
 > that would also make shared libraries happy but that would be less
 > complicated.

Oh, you mean like MAP_COPY? :-)

        -- Jason R. Thorpe <>