Deleted Added
full compact
2c2
< * Copyright (c) 1999-2002 Robert N. M. Watson
---
> * Copyright (c) 1999-2002, 2006 Robert N. M. Watson
40c40
< * $FreeBSD: head/sys/security/mac/mac_internal.h 166531 2007-02-06 10:59:23Z rwatson $
---
> * $FreeBSD: head/sys/security/mac/mac_internal.h 166533 2007-02-06 14:19:25Z rwatson $
65a66,82
> * MAC labels -- in-kernel storage format.
> *
> * In general, struct label pointers are embedded in kernel data structures
> * representing objects that may be labeled (and protected). Struct label is
> * opaque to both kernel services that invoke the MAC Framework and MAC
> * policy modules. In particular, we do not wish to encode the layout of the
> * label structure into any ABIs. Historically, the slot array contained
> * unions of {long, void} but now contains uintptr_t.
> */
> #define MAC_MAX_SLOTS 4
> #define MAC_FLAG_INITIALIZED 0x0000001 /* Is initialized for use. */
> struct label {
> int l_flags;
> intptr_t l_perpolicy[MAC_MAX_SLOTS];
> };
>
> /*