cvs commit: src/sys/security/mac_test mac_test.c

Robert Watson rwatson at
Sun Apr 22 11:35:16 UTC 2007

rwatson     2007-04-22 11:35:15 UTC

  FreeBSD src repository

  Modified files:
    sys/security/mac_test mac_test.c 
  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

More information about the cvs-src mailing list