From 5e7ce4785f43ef1e01c5a85bc10c9ddba60076d7 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 26 Mar 2003 15:12:03 +0000 Subject: Modify the mac_init_ipq() MAC Framework entry point to accept an additional flags argument to indicate blocking disposition, and pass in M_NOWAIT from the IP reassembly code to indicate that blocking is not OK when labeling a new IP fragment reassembly queue. This should eliminate some of the WITNESS warnings that have started popping up since fine-grained IP stack locking started going in; if memory allocation fails, the creation of the fragment queue will be aborted. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/security/mac_none/mac_none.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/security/mac_none') diff --git a/sys/security/mac_none/mac_none.c b/sys/security/mac_none/mac_none.c index 482128aa0d96..5bb8a428fb47 100644 --- a/sys/security/mac_none/mac_none.c +++ b/sys/security/mac_none/mac_none.c @@ -974,7 +974,7 @@ static struct mac_policy_ops mac_none_ops = .mpo_init_cred_label = mac_none_init_label, .mpo_init_devfsdirent_label = mac_none_init_label, .mpo_init_ifnet_label = mac_none_init_label, - .mpo_init_ipq_label = mac_none_init_label, + .mpo_init_ipq_label = mac_none_init_label_waitcheck, .mpo_init_mbuf_label = mac_none_init_label_waitcheck, .mpo_init_mount_label = mac_none_init_label, .mpo_init_mount_fs_label = mac_none_init_label, -- cgit v1.3