[LTP] [PATCH] cve/cve-2016-10044.c: Fix compilation without READ_IMPLIES_EXEC

Xiao Yang yangx.jy@cn.fujitsu.com
Thu Sep 14 02:45:20 CEST 2017


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

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 include/lapi/personality.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/personality.h b/include/lapi/personality.h
index 5b55438..d85baa0 100644
--- a/include/lapi/personality.h
+++ b/include/lapi/personality.h
@@ -27,4 +27,8 @@
 # define UNAME26 0x0020000
 #endif
 
+#ifndef READ_IMPLIES_EXEC
+# define READ_IMPLIES_EXEC 0x0400000
+#endif
+
 #endif	/* PERSONALITY_H */
-- 
1.8.3.1





More information about the ltp mailing list