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/linux/elf.h | |
parent | 79f9f99ad1e3e19d4ac300573b51289e3ee8ba86 (diff) |
default SET_PERSONALITY() in linux/elf.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/elf.h')
-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 @@ Override in asm/elf.h as needed. */ # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0 #endif +#ifndef SET_PERSONALITY +#define SET_PERSONALITY(ex) \ + set_personality(PER_LINUX | (current->personality & (~PER_MASK))) +#endif #if ELF_CLASS == ELFCLASS32 |