patch-2.1.92 linux/fs/binfmt_elf.c
Next file: linux/fs/buffer.c
Previous file: linux/fs/binfmt_aout.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Wed Apr  1 16:26:34 1998
-  Orig file: 
v2.1.91/linux/fs/binfmt_elf.c
-  Orig date: 
Tue Mar 10 10:03:33 1998
diff -u --recursive --new-file v2.1.91/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -705,8 +705,7 @@
 #ifndef VM_STACK_FLAGS
 	current->executable = dget(bprm->dentry);
 #endif
-	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_elf_tables((char *)bprm->p,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov