.. | .. |
---|
345 | 345 | /* there's now no turning back... the old userspace image is dead, |
---|
346 | 346 | * defunct, deceased, etc. |
---|
347 | 347 | */ |
---|
| 348 | + SET_PERSONALITY(exec_params.hdr); |
---|
348 | 349 | if (elf_check_fdpic(&exec_params.hdr)) |
---|
349 | | - set_personality(PER_LINUX_FDPIC); |
---|
350 | | - else |
---|
351 | | - set_personality(PER_LINUX); |
---|
| 350 | + current->personality |= PER_LINUX_FDPIC; |
---|
352 | 351 | if (elf_read_implies_exec(&exec_params.hdr, executable_stack)) |
---|
353 | 352 | current->personality |= READ_IMPLIES_EXEC; |
---|
354 | 353 | |
---|
.. | .. |
---|
434 | 433 | current->mm->start_stack = current->mm->start_brk + stack_size; |
---|
435 | 434 | #endif |
---|
436 | 435 | |
---|
437 | | - if (create_elf_fdpic_tables(bprm, current->mm, |
---|
438 | | - &exec_params, &interp_params) < 0) |
---|
| 436 | + retval = create_elf_fdpic_tables(bprm, current->mm, &exec_params, |
---|
| 437 | + &interp_params); |
---|
| 438 | + if (retval < 0) |
---|
439 | 439 | goto error; |
---|
440 | 440 | |
---|
441 | 441 | kdebug("- start_code %lx", current->mm->start_code); |
---|