Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156951033
D27953.id81634.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
474 B
Referenced Files
None
Subscribers
None
D27953.id81634.diff
View Options
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2983,6 +2983,8 @@
sz = round_page(ph->p_vaddr + ph->p_filesz) -
trunc_page(ph->p_vaddr);
prot = convert_prot(ph->p_flags) | (before ? PROT_WRITE : 0);
+ if (before)
+ prot &= ~PROT_EXEC;
if (mprotect(base, sz, prot) == -1) {
_rtld_error("%s: Cannot write-%sable text segment: %s",
obj->path, before ? "en" : "dis",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 2:36 PM (17 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33252304
Default Alt Text
D27953.id81634.diff (474 B)
Attached To
Mode
D27953: rtld: When relocating, map without PROT_EXEC
Attached
Detach File
Event Timeline
Log In to Comment