Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2007 11:35:15 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/security/mac_test mac_test.c
Message-ID:  <200704221135.l3MBZFh0097223@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704221135.l3MBZFh0097223>