freebsd-skq/sys/security/mac
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
..
mac_framework.c Remove conditional return of 1. For the MAC_STATIC case at this point in 2007-01-01 01:40:29 +00:00
mac_framework.h Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_inet.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_internal.h Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_label.c Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_net.c Remove an inaccurate comment I added regarding storage for mbuf tag 2006-12-28 21:57:59 +00:00
mac_pipe.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_policy.h Introduce accessor functions mac_label_get() and mac_label_set() to replace 2007-02-06 14:19:25 +00:00
mac_posix_sem.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_priv.c Move src/sys/sys/mac_policy.h, the kernel interface between the MAC 2006-12-22 23:34:47 +00:00
mac_process.c Move src/sys/sys/mac_policy.h, the kernel interface between the MAC 2006-12-22 23:34:47 +00:00
mac_socket.c Move src/sys/sys/mac_policy.h, the kernel interface between the MAC 2006-12-22 23:34:47 +00:00
mac_syscalls.c Trim unneeded includes. 2006-12-28 21:07:45 +00:00
mac_system.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_sysv_msg.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_sysv_sem.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_sysv_shm.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00
mac_vfs.c Continue 7-CURRENT MAC Framework rearrangement and cleanup: 2007-02-06 10:59:23 +00:00