patch-1.3.98 linux/arch/alpha/kernel/ptrace.c
Next file: linux/arch/i386/config.in
Previous file: linux/arch/alpha/defconfig
Back to the patch index
Back to the overall index
-  Lines: 11
 -  Date:
Fri May  3 15:55:57 1996
 -  Orig file: 
v1.3.97/linux/arch/alpha/kernel/ptrace.c
 -  Orig date: 
Wed Apr  3 16:06:55 1996
 
diff -u --recursive --new-file v1.3.97/linux/arch/alpha/kernel/ptrace.c linux/arch/alpha/kernel/ptrace.c
@@ -510,8 +510,10 @@
 			return -EPERM;
 		if ((!child->dumpable ||
 		     (current->uid != child->euid) ||
+		     (current->uid != child->suid) ||
 		     (current->uid != child->uid) ||
 		     (current->gid != child->egid) ||
+		     (current->gid != child->sgid) ||
 		     (current->gid != child->gid)) && !suser())
 			return -EPERM;
 		/* the same process cannot be attached many times */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this