]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86-64: add read implies exec macro
authorAndi Kleen <ak@muc.de>
Fri, 17 Sep 2004 05:02:24 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 17 Sep 2004 05:02:24 +0000 (22:02 -0700)
Add read implies exec personality.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-x86_64/elf.h

index e72f10fef3fe93b7b72e091ac7f29621f76c594f..9839b92d27063eeae76da3124cbac510211f9a4e 100644 (file)
@@ -144,6 +144,13 @@ typedef struct user_i387_struct elf_fpregset_t;
 extern void set_personality_64bit(void);
 #define SET_PERSONALITY(ex, ibcs2) set_personality_64bit()
        
+/*
+ * An executable for which elf_read_implies_exec() returns TRUE will
+ * have the READ_IMPLIES_EXEC personality flag set automatically.
+ */
+#define elf_read_implies_exec_binary(ex, have_pt_gnu_stack)   \
+        (!(have_pt_gnu_stack))
+
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);