Date: Sun, 28 Oct 2012 16:14:07 +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-9@freebsd.org Subject: svn commit: r242245 - stable/9/sys/kern Message-ID: <201210281614.q9SGE7qS047745@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281614.q9SGE7qS047745>