Skip to contentSkip to conversation

cve/cve-2016-10044.c: Fix compilation without READ_IMPLIES_EXEC

PATCH New Xiao Yang 2 participants 2 messages Sep 14, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 cve/cve-2016-10044.c: Fix compilation without READ_IMPLIES_EXEC

Compilation failed on some older distributions(e.g. RHEL5.11) due to undefined READ_IMPLIES_EXEC in <sys/personality.h>, so we fix it.

---
 include/lapi/personality.h | 4 ++++
 1 file changed, 4 insertions(+)
include/lapi/personality.h +4 -0
index 5b55438..d85baa0 100644
@@ -27,4 +27,8 @@
 # define UNAME26 0x0020000
 #endif
 
+#ifndef READ_IMPLIES_EXEC
+# define READ_IMPLIES_EXEC 0x0400000
+#endif
+
 #endif	/* PERSONALITY_H */
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 cve/cve-2016-10044.c: Fix compilation without READ_IMPLIES_EXEC

Hi!

Quoted 2 lines

Compilation failed on some older distributions(e.g. RHEL5.11) due to undefined READ_IMPLIES_EXEC in <sys/personality.h>, so we fix it.

Pushed, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]