diff options
| author | Christian S.J. Peron <csjp@FreeBSD.org> | 2006-09-12 04:25:13 +0000 |
|---|---|---|
| committer | Christian S.J. Peron <csjp@FreeBSD.org> | 2006-09-12 04:25:13 +0000 |
| commit | d94f2a68f8c39a5abc9ba9c58e959f31bc90194d (patch) | |
| tree | bfad0bcbfb5566e8fc5f5992840f671a03dba9ea /sys/security/mac_mls/mac_mls.c | |
| parent | 3bb00f61a274685858e022369c683c0bb1af8620 (diff) | |
Notes
Diffstat (limited to 'sys/security/mac_mls/mac_mls.c')
| -rw-r--r-- | sys/security/mac_mls/mac_mls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c index b258b21f3c3d..2361abc2996a 100644 --- a/sys/security/mac_mls/mac_mls.c +++ b/sys/security/mac_mls/mac_mls.c @@ -1305,6 +1305,17 @@ mac_mls_inpcb_sosetlabel(struct socket *so, struct label *solabel, mac_mls_copy(source, dest); } +static void +mac_mls_create_mbuf_from_firewall(struct mbuf *m, struct label *mbuflabel) +{ + struct mac_mls *dest; + + dest = SLOT(mbuflabel); + + /* XXX: where is the label for the firewall really comming from? */ + mac_mls_set_effective(dest, MAC_MLS_TYPE_EQUAL, 0, NULL); +} + /* * Labeling event operations: processes. */ @@ -2972,6 +2983,7 @@ static struct mac_policy_ops mac_mls_ops = .mpo_check_vnode_stat = mac_mls_check_vnode_stat, .mpo_check_vnode_write = mac_mls_check_vnode_write, .mpo_associate_nfsd_label = mac_mls_associate_nfsd_label, + .mpo_create_mbuf_from_firewall = mac_mls_create_mbuf_from_firewall, }; MAC_POLICY_SET(&mac_mls_ops, mac_mls, "TrustedBSD MAC/MLS", |
