svn commit: r242245 - stable/9/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sun Oct 28 16:14:07 UTC 2012
Author: avg
Date: Sun Oct 28 16:14:07 2012
New Revision: 242245
URL: http://svn.freebsd.org/changeset/base/242245
Log:
MFC r241281: ktrace/kern_exec: check p_tracecred instead of p_cred
Modified:
stable/9/sys/kern/kern_exec.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/kern_exec.c
==============================================================================
--- stable/9/sys/kern/kern_exec.c Sun Oct 28 16:12:12 2012 (r242244)
+++ stable/9/sys/kern/kern_exec.c Sun Oct 28 16:14:07 2012 (r242245)
@@ -694,7 +694,8 @@ interpret:
setsugid(p);
#ifdef KTRACE
- if (priv_check_cred(oldcred, PRIV_DEBUG_DIFFCRED, 0))
+ if (p->p_tracecred != NULL &&
+ priv_check_cred(p->p_tracecred, PRIV_DEBUG_DIFFCRED, 0))
ktrprocexec(p, &tracecred, &tracevp);
#endif
/*
More information about the svn-src-stable-9
mailing list