From owner-p4-projects@FreeBSD.ORG Thu Apr 20 14:43:42 2006 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 49D3D16A408; Thu, 20 Apr 2006 14:43:42 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 184E216A401 for ; Thu, 20 Apr 2006 14:43:42 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4EF943D5D for ; Thu, 20 Apr 2006 14:43:40 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3KEheUR062329 for ; Thu, 20 Apr 2006 14:43:40 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3KEheIA062313 for perforce@freebsd.org; Thu, 20 Apr 2006 14:43:40 GMT (envelope-from millert@freebsd.org) Date: Thu, 20 Apr 2006 14:43:40 GMT Message-Id: <200604201443.k3KEheIA062313@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 95681 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: Thu, 20 Apr 2006 14:43:42 -0000 http://perforce.freebsd.org/chv.cgi?CH=95681 Change 95681 by millert@millert_g5tower on 2006/04/20 14:42:40 Use proc_has_security() not cred_has_security(). Affected files ... .. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_syscall.c#12 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_syscall.c#12 (text+ko) ==== @@ -1,6 +1,6 @@ /*- * Copyright (c) 2002 Networks Associates Technology, Inc. - * Copyright (c) 2005, 2006 SPARTA, Inc. + * Copyright (c) 2005-2006 SPARTA, Inc. * All rights reserved. * * This software was developed for the FreeBSD Project by NAI Labs, the @@ -84,7 +84,7 @@ void *kdata; int rc; - rc = cred_has_security(td->p_ucred, SECURITY__LOAD_POLICY); + rc = proc_has_security(td, SECURITY__LOAD_POLICY); if (rc) return (rc); @@ -362,7 +362,7 @@ { char *str; - error = cred_has_security(td->p_ucred, SECURITY__SETBOOL); + error = proc_has_security(td, SECURITY__SETBOOL); if (error) return (error); @@ -383,7 +383,7 @@ } case SEBSDCALL_COMMIT_BOOLS: - error = cred_has_security(td->p_ucred, SECURITY__SETBOOL); + error = proc_has_security(td, SECURITY__SETBOOL); if (error) return (error); return (security_commit_pending_bools());