patch-2.1.100 linux/arch/ppc/kernel/ptrace.c
Next file: linux/arch/ppc/mm/init.c
Previous file: linux/arch/mips/kernel/sysmips.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May  6 10:56:02 1998
-  Orig file: 
v2.1.99/linux/arch/ppc/kernel/ptrace.c
-  Orig date: 
Thu Apr 23 20:21:29 1998
diff -u --recursive --new-file v2.1.99/linux/arch/ppc/kernel/ptrace.c linux/arch/ppc/kernel/ptrace.c
@@ -331,7 +331,7 @@
 		    (current->uid != child->euid) ||
 		    (current->uid != child->uid) ||
 	 	    (current->gid != child->egid) ||
-	 	    (current->gid != child->gid)) && !suser())
+	 	    (current->gid != child->gid)) && !capable(CAP_SYS_PTRACE))
 			goto out;
 		/* the same process cannot be attached many times */
 		if (child->flags & PF_PTRACED)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov