From owner-svn-src-all@FreeBSD.ORG Sun Oct 28 16:14:20 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E6242D9; Sun, 28 Oct 2012 16:14:20 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 768CD8FC08; Sun, 28 Oct 2012 16:14:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9SGEKLU047819; Sun, 28 Oct 2012 16:14:20 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9SGEK7X047817; Sun, 28 Oct 2012 16:14:20 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201210281614.q9SGEK7X047817@svn.freebsd.org> From: Andriy Gapon Date: Sun, 28 Oct 2012 16:14:20 +0000 (UTC) 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 X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 16:14:20 -0000 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 /*