svn commit: r242246 - stable/8/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sun Oct 28 16:14:20 UTC 2012
Author: avg
Date: Sun Oct 28 16:14:19 2012
New Revision: 242246
URL: http://svn.freebsd.org/changeset/base/242246
Log:
MFC r241281: ktrace/kern_exec: check p_tracecred instead of p_cred
Modified:
stable/8/sys/kern/kern_exec.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/kern/ (props changed)
Modified: stable/8/sys/kern/kern_exec.c
==============================================================================
--- stable/8/sys/kern/kern_exec.c Sun Oct 28 16:14:07 2012 (r242245)
+++ stable/8/sys/kern/kern_exec.c Sun Oct 28 16:14:19 2012 (r242246)
@@ -655,7 +655,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
mailing list