|
@@ -156,12 +156,12 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
|
|
#undef SET_PERSONALITY
|
|
#undef SET_PERSONALITY
|
|
#define SET_PERSONALITY(ex) \
|
|
#define SET_PERSONALITY(ex) \
|
|
do { \
|
|
do { \
|
|
- current->personality = PER_LINUX; \
|
|
|
|
|
|
+ set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
|
|
current_thread_info()->status &= ~TS_COMPAT; \
|
|
current_thread_info()->status &= ~TS_COMPAT; \
|
|
} while (0)
|
|
} while (0)
|
|
#define COMPAT_SET_PERSONALITY(ex) \
|
|
#define COMPAT_SET_PERSONALITY(ex) \
|
|
do { \
|
|
do { \
|
|
- current->personality = PER_LINUX_32BIT; \
|
|
|
|
|
|
+ set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
|
|
current_thread_info()->status |= TS_COMPAT; \
|
|
current_thread_info()->status |= TS_COMPAT; \
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|