From owner-p4-projects@FreeBSD.ORG Sun Jan 21 22:35:34 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3D75316A4C8; Sun, 21 Jan 2007 22:35:34 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E26E16A404 for ; Sun, 21 Jan 2007 22:35:34 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id F0F5713C459 for ; Sun, 21 Jan 2007 22:35:33 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0LMZXT4064161 for ; Sun, 21 Jan 2007 22:35:33 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0LMZX2p064157 for perforce@freebsd.org; Sun, 21 Jan 2007 22:35:33 GMT (envelope-from millert@freebsd.org) Date: Sun, 21 Jan 2007 22:35:33 GMT Message-Id: <200701212235.l0LMZX2p064157@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 113284 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 22:35:34 -0000 http://perforce.freebsd.org/chv.cgi?CH=113284 Change 113284 by millert@millert_macbook on 2007/01/21 22:34:52 Use vfs_context_ucred() Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vm/dp_backing_file.c#6 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vm/dp_backing_file.c#6 (text+ko) ==== @@ -220,7 +220,7 @@ goto swapon_bailout; #ifdef MAC vnode_lock(vp); - error = mac_system_check_swapon(p->p_ucred, vp); + error = mac_system_check_swapon(vfs_context_ucred(&context), vp); vnode_unlock(vp); if (error) goto swapon_bailout; @@ -361,7 +361,7 @@ } #ifdef MAC vnode_lock(vp); - error = mac_system_check_swapoff(p->p_ucred, vp); + error = mac_system_check_swapoff(vfs_context_ucred(&context), vp); vnode_unlock(vp); if (error) goto swapoff_bailout;