diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-06-02 17:21:38 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-06-02 17:21:38 +0000 |
commit | 792ca19a6f13857df01383a9f135111791e02778 (patch) | |
tree | 280c0f72003907217728baa3334884945679c5cc /sys/security/mac_biba/mac_biba.c | |
parent | bfe214278d0b0615ecf68a2b9dc27c434fd6608a (diff) | |
download | FreeBSD-src-792ca19a6f13857df01383a9f135111791e02778.zip FreeBSD-src-792ca19a6f13857df01383a9f135111791e02778.tar.gz |
Use mac_biba_label_copy() and mac_mls_label_copy() to implement the
mpo_copy_mbuf_label() entry point for Biba and MLS, respectively.
Otherwise, labels in m_tags may not be properly propagated across
some classes of mbuf operations. This problem caused these policies
to fail-stop the system with a panic.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_biba/mac_biba.c')
-rw-r--r-- | sys/security/mac_biba/mac_biba.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 18f7a0f..fa9d5e2 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -2630,6 +2630,7 @@ static struct mac_policy_ops mac_biba_ops = .mpo_destroy_socket_label = mac_biba_destroy_label, .mpo_destroy_socket_peer_label = mac_biba_destroy_label, .mpo_destroy_vnode_label = mac_biba_destroy_label, + .mpo_copy_mbuf_label = mac_biba_copy_label, .mpo_copy_pipe_label = mac_biba_copy_label, .mpo_copy_vnode_label = mac_biba_copy_label, .mpo_externalize_cred_label = mac_biba_externalize_label, |