mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:45:09 +00:00
Kernel: Unbreak module loading (broke with NX bit changes)
Modules are now mapped fully RWX. This can definitely be improved, but at least it unbreaks the feature for now.
This commit is contained in:
parent
93e9a42bf0
commit
8cc5fa5598
1 changed files with 1 additions and 1 deletions
|
@ -3780,7 +3780,7 @@ int Process::sys$module_load(const char* path, size_t path_length)
|
|||
auto module = make<Module>();
|
||||
|
||||
elf_image->for_each_section_of_type(SHT_PROGBITS, [&](const ELFImage::Section& section) {
|
||||
auto section_storage = KBuffer::copy(section.raw_data(), section.size());
|
||||
auto section_storage = KBuffer::copy(section.raw_data(), section.size(), Region::Access::Read | Region::Access::Write | Region::Access::Execute);
|
||||
section_storage_by_name.set(section.name(), section_storage.data());
|
||||
module->sections.append(move(section_storage));
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue