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:
parent
241c068066
commit
ff2783442e
2 changed files with 4 additions and 2 deletions
1
mmu.h
1
mmu.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue