mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 16:05:31 +03:00
Fix KPrivateMemory remap permissions
This commit is contained in:
parent
389ab0fb50
commit
3736d36b75
@ -61,7 +61,7 @@ namespace skyline::kernel::type {
|
|||||||
if (mprotect(ptr, size, PROT_NONE) < 0)
|
if (mprotect(ptr, size, PROT_NONE) < 0)
|
||||||
throw exception("An occurred while remapping private memory: {}", strerror(errno));
|
throw exception("An occurred while remapping private memory: {}", strerror(errno));
|
||||||
|
|
||||||
if (mprotect(nPtr, nSize, PROT_NONE) < 0)
|
if (mprotect(nPtr, nSize, PROT_READ | PROT_WRITE | PROT_EXEC) < 0)
|
||||||
throw exception("An occurred while remapping private memory: {}", strerror(errno));
|
throw exception("An occurred while remapping private memory: {}", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user