lkml.org 
[lkml]   [1999]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PATCH: was Re: mmap bug in 2.2.13 (or in documentation)
>  	if (file) {
> - if (file->f_mode & 1)
> - vma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
> + vma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;

You cannot go around allowing anyone to write to an mmapped file without having
it open for writing.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.048 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site