patch-2.1.100 linux/arch/mips/kernel/ptrace.c

Next file: linux/arch/mips/kernel/sysirix.c
Previous file: linux/arch/m68k/kernel/sys_m68k.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/arch/mips/kernel/ptrace.c linux/arch/mips/kernel/ptrace.c
@@ -289,7 +289,8 @@
 		    (current->uid != child->uid) ||
 	 	    (current->gid != child->egid) ||
 		    (current->gid != child->sgid) ||
-	 	    (current->gid != child->gid)) && !suser()) {
+	 	    (current->gid != child->gid)) && 
+		    !capable(CAP_SYS_PTRACE)) {
 			res = -EPERM;
 			goto out;
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov