freebsd-dev/sys/security
Robert Watson 6827d0294e 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
2007-04-22 11:35:15 +00:00
..
audit Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_biba Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_bsdextended Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_ifoff More unnecessary include reduction. 2007-02-23 14:39:04 +00:00
mac_lomac Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_mls Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_none Remove many unneeded includes, update copyright. 2007-02-23 11:21:26 +00:00
mac_partition More unnecessary include reduction. 2007-02-23 14:39:04 +00:00
mac_portacl More unnecessary include reduction. 2007-02-23 14:39:04 +00:00
mac_seeotheruids More unnecessary include reduction. 2007-02-23 14:39:04 +00:00
mac_stub Allow MAC policy modules to control access to audit configuration system 2007-04-21 22:08:48 +00:00
mac_test Perform overdue clean up mac_test policy: 2007-04-22 11:35:15 +00:00