freebsd-dev/sys/security
Robert Watson 0142affc77 Introduce accessor functions mac_label_get() and mac_label_set() to replace
LABEL_TO_SLOT() macro used by policy modules to query and set label data
in struct label.  Instead of using a union, store an intptr_t, simplifying
the API.

Update policies: in most cases this required only small tweaks to current
wrapper macros.  In two cases, a single wrapper macros had to be split into
separate get and set macros.

Move struct label definition from _label.h to mac_internal.h and remove
_label.h.  With this change, policies may now treat struct label * as
opaque, allowing us to change the layout of struct label without breaking
the policy module ABI.  For example, we could make the maximum number of
policies with labels modifiable at boot-time rather than just at
compile-time.

Obtained from:	TrustedBSD Project
2007-02-06 14:19:25 +00:00
..
audit When returning early from audit_arg_file() due to so->so_pcb being NULL 2007-01-06 22:28:28 +00:00
mac Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_biba Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_bsdextended Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_ifoff Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_lomac Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_mls Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_none Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_partition Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_portacl Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_seeotheruids Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_stub Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_test Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00