Re: [patch] elf.5 remove mention to PF_X and PF_W in the data segment common flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux