svn commit: r273237 - in stable: 10/sys/kern 9/sys/kern

John Baldwin jhb at FreeBSD.org
Fri Oct 17 19:28:23 UTC 2014


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;


More information about the svn-src-stable-9 mailing list