summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2005-03-04 17:25:55 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-04 17:25:55 -0800
commit8ec0defa78358ecae2b24146666e384af30950b5 (patch)
treeb2a4d3bf7f66c0f46687814b7e74ac7c84f0e181 /include
parent3f06ae033fc51fd6163445f7bee505f0095404ec (diff)
[PATCH] Randomisation: add ADDR_NO_RANDOMIZE personality
Introduce a personality that disables randomisation, so that users can use setarch and related commands to run specific applications without randomisation. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/personality.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/personality.h b/include/linux/personality.h
index 7cef4670ac05..80d780e5a8f5 100644
--- a/include/linux/personality.h
+++ b/include/linux/personality.h
@@ -18,6 +18,7 @@ extern int __set_personality(unsigned long);
* These occupy the top three bytes.
*/
enum {
+ ADDR_NO_RANDOMIZE = 0x0040000, /* disable randomization of VA space */
FDPIC_FUNCPTRS = 0x0080000, /* userspace function ptrs point to descriptors
* (signal handling)
*/
@@ -35,7 +36,7 @@ enum {
* Security-relevant compatibility flags that must be
* cleared upon setuid or setgid exec:
*/
-#define PER_CLEAR_ON_SETID (READ_IMPLIES_EXEC)
+#define PER_CLEAR_ON_SETID (READ_IMPLIES_EXEC|ADDR_NO_RANDOMIZE)
/*
* Personality types.