mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
修复mprotect系统调用未正确设置vm_flags的错误 (#847)
This commit is contained in:
parent
6f189d2743
commit
38458c7267
@ -556,6 +556,8 @@ impl InnerAddressSpace {
|
||||
return Err(SystemError::EACCES);
|
||||
}
|
||||
|
||||
r_guard.set_vm_flags(VmFlags::from(prot_flags));
|
||||
|
||||
let new_flags: PageFlags<MMArch> = r_guard
|
||||
.flags()
|
||||
.set_execute(prot_flags.contains(ProtFlags::PROT_EXEC))
|
||||
|
Loading…
x
Reference in New Issue
Block a user