projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d81f6
)
[S390] Do not clobber personality flags on exec
author
Martin Schwidefsky
<
[email protected]
>
Mon, 26 Sep 2011 14:40:33 +0000
(16:40 +0200)
committer
Martin Schwidefsky
<
[email protected]
>
Mon, 26 Sep 2011 14:40:50 +0000
(16:40 +0200)
Analog to git commit
59e4c3a2fe9cb1681bb2cff508ff79466f7585ba
do not clear the additional personality flags on exec. We
need to inherit the personality bits in PER_MASK across exec.
Signed-off-by: Martin Schwidefsky <
[email protected]
>
arch/s390/include/asm/elf.h
patch
|
blob
|
history
diff --git
a/arch/s390/include/asm/elf.h
b/arch/s390/include/asm/elf.h
index 64b61bf72e936ff6839a975162c47483a417328d..547f1a6a35d442534c7027d316985b015fb00f06 100644
(file)
--- a/
arch/s390/include/asm/elf.h
+++ b/
arch/s390/include/asm/elf.h
@@
-188,7
+188,8
@@
extern char elf_platform[];
#define SET_PERSONALITY(ex) \
do { \
if (personality(current->personality) != PER_LINUX32) \
- set_personality(PER_LINUX); \
+ set_personality(PER_LINUX | \
+ (current->personality & ~PER_MASK)); \
if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
set_thread_flag(TIF_31BIT); \
else \