Fix KPrivateMemory remap permissions

This commit is contained in:
Billy Laws 2022-06-02 18:10:35 +01:00
parent 389ab0fb50
commit 3736d36b75

View File

@ -61,7 +61,7 @@ namespace skyline::kernel::type {
if (mprotect(ptr, size, PROT_NONE) < 0)
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));
}