patch-2.1.115 linux/arch/mips/kernel/irixelf.c
Next file: linux/arch/mips/kernel/irq.c
Previous file: linux/arch/mips/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Aug 4 16:06:57 1998
- Orig file:
v2.1.114/linux/arch/mips/kernel/irixelf.c
- Orig date:
Fri May 8 23:14:43 1998
diff -u --recursive --new-file v2.1.114/linux/arch/mips/kernel/irixelf.c linux/arch/mips/kernel/irixelf.c
@@ -725,6 +725,7 @@
current->mm->end_data = 0;
current->mm->end_code = 0;
current->mm->mmap = NULL;
+ current->flags &= ~PF_FORKNOEXEC;
elf_entry = (unsigned int) elf_ex.e_entry;
/* Do this so that we can load the interpreter, if need be. We will
@@ -775,8 +776,7 @@
if (current->binfmt && current->binfmt->module)
__MOD_INC_USE_COUNT(current->binfmt->module);
- current->suid = current->euid = current->fsuid = bprm->e_uid;
- current->sgid = current->egid = current->fsgid = bprm->e_gid;
+ compute_creds(bprm);
current->flags &= ~PF_FORKNOEXEC;
bprm->p = (unsigned long)
create_irix_tables((char *)bprm->p, bprm->argc, bprm->envc,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov