Messages in this thread | | | Date | Fri, 31 Dec 1999 15:25:35 +0000 | From | Alan Cox <> | Subject | Re: 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/
| |