From owner-p4-projects@FreeBSD.ORG Wed Feb 9 16:08:55 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3281D16A4D0; Wed, 9 Feb 2005 16:08:55 +0000 (GMT) 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 E614A16A4CE for ; Wed, 9 Feb 2005 16:08:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D07EB43D2F for ; Wed, 9 Feb 2005 16:08:54 +0000 (GMT) (envelope-from trhodes@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 j19G8shG090385 for ; Wed, 9 Feb 2005 16:08:54 GMT (envelope-from trhodes@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j19G8sMu090382 for perforce@freebsd.org; Wed, 9 Feb 2005 16:08:54 GMT (envelope-from trhodes@freebsd.org) Date: Wed, 9 Feb 2005 16:08:54 GMT Message-Id: <200502091608.j19G8sMu090382@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to trhodes@freebsd.org using -f From: Tom Rhodes To: Perforce Change Reviews Subject: PERFORCE change 70703 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 16:08:55 -0000 http://perforce.freebsd.org/chv.cgi?CH=70703 Change 70703 by trhodes@trhodes_local on 2005/02/09 16:08:16 Some style and grammar changes. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_bsdextended/mac_bsdextended.c#80 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_bsdextended/mac_bsdextended.c#80 (text+ko) ==== @@ -99,7 +99,7 @@ &rule_slots, 0, "Number of used rule slots\n"); /* - * This is just used for logging purposes as eventually we would like + * This is just used for logging purposes, eventually we would like * to log much more then failed requests. */ static int mac_bsdextended_logging; @@ -192,10 +192,9 @@ *rules[index] = temprule; } mtx_unlock(&mac_bsdextended_mtx); - return 0; + return (0); } - if (req->oldptr) { mtx_lock(&mac_bsdextended_mtx); if (index < 0 || index > rule_slots + 1) { @@ -311,8 +310,8 @@ return (EACCES); /* Matching rule denies access */ } /* - * If the rule matched and allowed access and first match is - * enabled, then return success. + * If the rule matched, permits access, and first match is + * enabled, return success. */ if (mac_bsdextended_firstmatch_enabled) return (EJUSTRETURN); @@ -335,7 +334,7 @@ continue; /* - * Since we don't separately handle append, map append to + * Since we do not separately handle append, map append to * write. */ if (acc_mode & MBI_APPEND) {