Introduce support for Mandatory Access Control and extensible

kernel access control.

Label BPF descriptor objects, permitting security features to be
maintained on those objects.  bd_label will be used to authorize
data flow from network interfaces to user processes.  BPF
labels are protected using the same synchronization model as other
mutable data in the BPF descriptor.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
rwatson 2002-07-30 23:03:29 +00:00
parent 6a39ed41ad
commit c328272c1f

View File

@ -44,6 +44,7 @@
#define _NET_BPFDESC_H_
#include <sys/callout.h>
#include <sys/mac.h>
#include <sys/selinfo.h>
/*
@ -92,6 +93,7 @@ struct bpf_d {
#endif
struct mtx bd_mtx; /* mutex for this descriptor */
struct callout bd_callout; /* for BPF timeouts with select */
struct label bd_label; /* MAC label for descriptor */
};
/* Values for bd_state */