svn commit: r272449 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Thu Oct 2 21:18:17 UTC 2014
Author: jhb
Date: Thu Oct 2 21:18:16 2014
New Revision: 272449
URL: https://svnweb.freebsd.org/changeset/base/272449
Log:
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().
Submitted by: rwatson
MFC after: 3 days
Modified:
head/sys/kern/sys_process.c
Modified: head/sys/kern/sys_process.c
==============================================================================
--- head/sys/kern/sys_process.c Thu Oct 2 20:17:16 2014 (r272448)
+++ head/sys/kern/sys_process.c Thu Oct 2 21:18:16 2014 (r272449)
@@ -1240,7 +1240,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-all
mailing list