Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 20:38:20 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289664 - head/sys/kern
Message-ID:  <201510202038.t9KKcKW5064373@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Oct 20 20:38:20 2015
New Revision: 289664
URL: https://svnweb.freebsd.org/changeset/base/289664

Log:
  Trim spaces at end of line to record the proper commit message for
  r289660:
  
  Do not allow to execute ptrace(PT_TRACE_ME) when the process is
  already traced.
  
  Do not allow to execute ptrace(PT_TRACE_ME) when there is no parent
  which can trace the process, i.e. when the parent is already init.
  Note that after the PT_TRACE_ME request the process is unkillable and
  non-continuable until a debugger is attached, or parent is killed, the
  later clears P_TRACED state.  Since init clearly would not debug the
  caller, and cannot be killed, disallow creation of unkillable
  processes.
  
  Reviewed by:	jhb, pho
  Reported and tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	2 weeks
  Differential revision:	https://reviews.freebsd.org/D3908

Modified:
  head/sys/kern/sys_process.c

Modified: head/sys/kern/sys_process.c
==============================================================================
--- head/sys/kern/sys_process.c	Tue Oct 20 20:37:00 2015	(r289663)
+++ head/sys/kern/sys_process.c	Tue Oct 20 20:38:20 2015	(r289664)
@@ -443,7 +443,7 @@ ptrace_vm_entry(struct thread *td, struc
 }
 
 #ifdef COMPAT_FREEBSD32
-static int      
+static int
 ptrace_vm_entry32(struct thread *td, struct proc *p,
     struct ptrace_vm_entry32 *pve32)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510202038.t9KKcKW5064373>