diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-17 17:47:04 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-26 02:46:08 -0500 |
commit | e72837e3e7bae3f182c4ac63c9424e86f1158dd0 (patch) | |
tree | 0d4d51e61aff21b3e6d3b1816b8cb52edcfbd39e /include | |
parent | 79f9f99ad1e3e19d4ac300573b51289e3ee8ba86 (diff) |
default SET_PERSONALITY() in linux/elf.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/elf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/elf.h b/include/linux/elf.h index 8c9048e33463..40a3c0e01b2b 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
@@ -10,6 +10,10 @@ | |||
10 | Override in asm/elf.h as needed. */ | 10 | Override in asm/elf.h as needed. */ |
11 | # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0 | 11 | # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0 |
12 | #endif | 12 | #endif |
13 | #ifndef SET_PERSONALITY | ||
14 | #define SET_PERSONALITY(ex) \ | ||
15 | set_personality(PER_LINUX | (current->personality & (~PER_MASK))) | ||
16 | #endif | ||
13 | 17 | ||
14 | #if ELF_CLASS == ELFCLASS32 | 18 | #if ELF_CLASS == ELFCLASS32 |
15 | 19 | ||