Correct a security bug in copyuvm()

copyuvm() should not allow new copied pages to inherit more
permissions than the original pages.
This commit is contained in:
Stephen Tu 2013-03-04 16:16:54 -05:00 committed by Austin Clements
parent 241c068066
commit ff2783442e
2 changed files with 4 additions and 2 deletions

1
mmu.h
View file

@ -142,6 +142,7 @@ struct segdesc {
// Address in page table or page directory entry
#define PTE_ADDR(pte) ((uint)(pte) & ~0xFFF)
#define PTE_FLAGS(pte) ((uint)(pte) & 0xFFF)
#ifndef __ASSEMBLER__
typedef uint pte_t;