Messages in this thread | | | Date | Mon, 24 May 2004 13:29:10 -0700 | From | Chris Wright <> | Subject | Re: Mmap problem (VM_DENYWRITE) |
| |
* shanthi kiran pendyala (skiranp@cisco.com) wrote: > The complete prot flag is (VM_READ | VM_WRITE | VM_EXEC | VM_GROWSUP | > VM_DENYWRITE) [snip] > Output after running test program > ================================= > building page tables for va 0x2aac5000 phy 0x10940000 > vsize 0x20000 psize 0x20000 prot 0xa07 > [snip]
> printk("<1> vsize 0x%lx psize 0x%lx prot 0x%lx\n", > vsize, psize, vma->vm_page_prot.pgprot);
I believe you've drawn the wrong conclusion. This contains page protection bits relevant for the page tables. You've decoded vm_page_prot as if it were vm_flags.
thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |