|
@@ -1093,6 +1093,7 @@ int flush_old_exec(struct linux_binprm * bprm)
|
|
|
|
|
|
bprm->mm = NULL; /* We're using it now */
|
|
bprm->mm = NULL; /* We're using it now */
|
|
|
|
|
|
|
|
+ set_fs(USER_DS);
|
|
current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD);
|
|
current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD);
|
|
flush_thread();
|
|
flush_thread();
|
|
current->personality &= ~bprm->per_clear;
|
|
current->personality &= ~bprm->per_clear;
|
|
@@ -1357,10 +1358,6 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
|
|
if (retval)
|
|
if (retval)
|
|
return retval;
|
|
return retval;
|
|
|
|
|
|
- /* kernel module loader fixup */
|
|
|
|
- /* so we don't try to load run modprobe in kernel space. */
|
|
|
|
- set_fs(USER_DS);
|
|
|
|
-
|
|
|
|
retval = audit_bprm(bprm);
|
|
retval = audit_bprm(bprm);
|
|
if (retval)
|
|
if (retval)
|
|
return retval;
|
|
return retval;
|