Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2014 19:28:22 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r273237 - in stable: 10/sys/kern 9/sys/kern
Message-ID:  <201410171928.s9HJSM05025950@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Oct 17 19:28:21 2014
New Revision: 273237
URL: https://svnweb.freebsd.org/changeset/base/273237

Log:
  MFC 272449:
  Require p_cansched() for changing a process' protection status via
  procctl() rather than p_cansee().

Modified:
  stable/9/sys/kern/sys_process.c
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/kern/sys_process.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/sys/kern/sys_process.c
==============================================================================
--- stable/9/sys/kern/sys_process.c	Fri Oct 17 19:04:24 2014	(r273236)
+++ stable/9/sys/kern/sys_process.c	Fri Oct 17 19:28:21 2014	(r273237)
@@ -1250,7 +1250,7 @@ protect_setchild(struct thread *td, stru
 {
 
 	PROC_LOCK_ASSERT(p, MA_OWNED);
-	if (p->p_flag & P_SYSTEM || p_cansee(td, p) != 0)
+	if (p->p_flag & P_SYSTEM || p_cansched(td, p) != 0)
 		return (0);
 	if (flags & PPROT_SET) {
 		p->p_flag |= P_PROTECTED;



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