From owner-cvs-src@FreeBSD.ORG Sun Apr 22 11:35:15 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA11F16A400; Sun, 22 Apr 2007 11:35:15 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DC7D413C45E; Sun, 22 Apr 2007 11:35:15 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3MBZFmY097224; Sun, 22 Apr 2007 11:35:15 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3MBZFh0097223; Sun, 22 Apr 2007 11:35:15 GMT (envelope-from rwatson) Message-Id: <200704221135.l3MBZFh0097223@repoman.freebsd.org> From: Robert Watson Date: Sun, 22 Apr 2007 11:35:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/security/mac_test mac_test.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2007 11:35:16 -0000 rwatson 2007-04-22 11:35:15 UTC FreeBSD src repository Modified files: sys/security/mac_test mac_test.c Log: Perform overdue clean up mac_test policy: - Add a more detailed comment describing the mac_test policy. - Add COUNTER_DECL() and COUNTER_INC() macros to declare and manage various test counters, reducing the verbosity of the test policy quite a bit. - Add LABEL_CHECK() macro to abbreviate normal validation of labels. Unlike the previous check macros, this checks for a NULL label and doesn't test NULL labels. This means that optionally passed labels will now be handled automatically, although in the case of optional credentials, NULL-checks are still required. - Add LABEL_DESTROY() macro to abbreviate the handling of label validation and tear-down. - Add LABEL_NOTFREE() macro to abbreviate check for non-free labels. - Normalize the names of counters, magic values. - Remove unused policy "enabled" flag. Obtained from: TrustedBSD Project Revision Changes Path 1.71 +476 -719 src/sys/security/mac_test/mac_test.c