diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-07-05 23:39:51 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-07-05 23:39:51 +0000 |
commit | 5e71112509f619704ade66a8c8429cb90bfff811 (patch) | |
tree | 003ec2c9d889fea416f06bf59091e4fb88ea39d8 /sys/sys/mac.h | |
parent | efcac3d02eb12bd48b935fce603dac730c4f0f40 (diff) | |
download | FreeBSD-src-5e71112509f619704ade66a8c8429cb90bfff811.zip FreeBSD-src-5e71112509f619704ade66a8c8429cb90bfff811.tar.gz |
Eliminate MAC entry point mac_create_mbuf_from_mbuf(), which is
redundant with respect to existing mbuf copy label routines. Expose
a new mac_copy_mbuf() routine at the top end of the Framework and
use that; use the existing mpo_copy_mbuf_label() routine on the
bottom end.
Obtained from: TrustedBSD Project
Sponsored by: SPARTA, SPAWAR
Approved by: re (scottl)
Diffstat (limited to 'sys/sys/mac.h')
-rw-r--r-- | sys/sys/mac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mac.h b/sys/sys/mac.h index e071c8a..810c320 100644 --- a/sys/sys/mac.h +++ b/sys/sys/mac.h @@ -166,6 +166,7 @@ int mac_init_mbuf_tag(struct m_tag *, int flag); void mac_init_mount(struct mount *); void mac_init_proc(struct proc *); void mac_init_vnode(struct vnode *); +void mac_copy_mbuf(struct mbuf *m_from, struct mbuf *m_to); void mac_copy_mbuf_tag(struct m_tag *, struct m_tag *); void mac_copy_vnode_label(struct label *, struct label *label); void mac_destroy_bpfdesc(struct bpf_d *); @@ -255,7 +256,6 @@ void mac_create_ipq(struct mbuf *fragment, struct ipq *ipq); void mac_create_datagram_from_ipq(struct ipq *ipq, struct mbuf *datagram); void mac_create_fragment(struct mbuf *datagram, struct mbuf *fragment); void mac_create_mbuf_from_inpcb(struct inpcb *inp, struct mbuf *m); -void mac_create_mbuf_from_mbuf(struct mbuf *oldmbuf, struct mbuf *newmbuf); void mac_create_mbuf_linklayer(struct ifnet *ifnet, struct mbuf *m); void mac_create_mbuf_from_bpfdesc(struct bpf_d *bpf_d, struct mbuf *m); void mac_create_mbuf_from_ifnet(struct ifnet *ifnet, struct mbuf *m); |