Re: [BK PATCH] LSM changes for 2.5.27

From: Greg KH (gregat_private)
Date: Mon Jul 22 2002 - 17:40:34 PDT

  • Next message: Greg KH: "Re: [BK PATCH] LSM changes for 2.5.27"

    # This is a BitKeeper generated patch for the following project:
    # Project Name: Linux kernel tree
    # This patch format is intended for GNU patch command version 2.5 or higher.
    # This patch includes the following deltas:
    #	           ChangeSet	1.683.1.4 -> 1.683.1.5
    #	arch/ia64/kernel/ptrace.c	1.10    -> 1.11   
    #
    # The following is the BitKeeper ChangeSet Log
    # --------------------------------------------
    # 02/07/22	gregat_private	1.683.1.5
    # added ptrace hook for ia64
    # --------------------------------------------
    #
    diff -Nru a/arch/ia64/kernel/ptrace.c b/arch/ia64/kernel/ptrace.c
    --- a/arch/ia64/kernel/ptrace.c	Mon Jul 22 17:25:56 2002
    +++ b/arch/ia64/kernel/ptrace.c	Mon Jul 22 17:25:56 2002
    @@ -15,6 +15,7 @@
     #include <linux/ptrace.h>
     #include <linux/smp_lock.h>
     #include <linux/user.h>
    +#include <linux/security.h>
     
     #include <asm/pgtable.h>
     #include <asm/processor.h>
    @@ -1099,6 +1100,9 @@
     	if (request == PTRACE_TRACEME) {
     		/* are we already being traced? */
     		if (current->ptrace & PT_PTRACED)
    +			goto out;
    +		ret = security_ops->ptrace(current->parent, current);
    +		if (ret)
     			goto out;
     		current->ptrace |= PT_PTRACED;
     		ret = 0;
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Mon Jul 22 2002 - 17:57:03 PDT