Hello Keegan, On 4/13/19 10:44 PM, Keegan Saunders wrote:
Hopefully got this one right. It is considered to be very poor form to mark segments as RWX as it poses security issues. Beyond this, though, it is falsely stated that .data segments commonly have RWX. This patch corrects this misinformation.
Removing PF_X seems correct, but removing PF_W does not, since the .data segment is normally writable. Or, perhaps I have missed something; why do you think PF_W should be removed? Thanks, Michael
diff --git a/man5/elf.5 b/man5/elf.5 index 6ee0954d4..549ae0139 100644 --- a/man5/elf.5 +++ b/man5/elf.5 @@ -786,9 +786,6 @@ A text segment commonly has the flags and .BR PF_R . A data segment commonly has -.BR PF_X , -.BR PF_W , -and .BR PF_R . .TP .IR p_align