Date: Sun, 28 Oct 2012 16:14:20 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r242246 - stable/8/sys/kern Message-ID: <201210281614.q9SGEK7X047817@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281614.q9SGEK7X047817>