From: Kenn H. <ke...@us...> - 2003-01-31 08:55:45
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1:/tmp/cvs-serv24103/kernel Modified Files: ptrace.c Log Message: Add security module check in ptrace Index: ptrace.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/ptrace.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ptrace.c 7 Dec 2002 00:14:56 -0000 1.7 +++ ptrace.c 31 Jan 2003 08:55:31 -0000 1.8 @@ -18,6 +18,7 @@ #include <linux/smp.h> #include <linux/smp_lock.h> #include <linux/user.h> +#include <linux/security.h> #if 0 #include <asm/fp.h> @@ -147,6 +148,9 @@ /* are we already being traced? */ if (current->ptrace & PT_PTRACED) { res = -EPERM; + goto out; + res = security_ops->ptrace(current->parent, current); + if (res) goto out; } /* set the ptrace bit in the process flags. */ |