PERFORCE change 70703 for review

Tom Rhodes trhodes at FreeBSD.org
Wed Feb 9 16:08:54 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=70703

Change 70703 by trhodes at 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) {
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list