Remap all preloaded executables read-only and executable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19180 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -820,6 +820,10 @@ insert_preloaded_image(struct preloaded_image *preloadedImage, bool kernel)
|
||||
preloadedImage->id = image->id;
|
||||
// modules_init() uses this information to get the preloaded images
|
||||
|
||||
// we now no longer need to write to the text area anymore
|
||||
set_area_protection(image->text_region.id,
|
||||
B_KERNEL_READ_AREA | B_KERNEL_EXECUTE_AREA);
|
||||
|
||||
return B_OK;
|
||||
|
||||
error1:
|
||||
|
||||
Reference in New Issue
Block a user