summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_framework.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-03-26 15:12:03 +0000
committerrwatson <rwatson@FreeBSD.org>2003-03-26 15:12:03 +0000
commite5680de54abac941f9b0f099aec14f24e493feb4 (patch)
treeedbc245cbca8647afd1e19854b10c0489fdc26fe /sys/security/mac/mac_framework.h
parent8b9c7fb58f9ec620d4ec3143b3463523a89f2d9d (diff)
downloadFreeBSD-src-e5680de54abac941f9b0f099aec14f24e493feb4.zip
FreeBSD-src-e5680de54abac941f9b0f099aec14f24e493feb4.tar.gz
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
Diffstat (limited to 'sys/security/mac/mac_framework.h')
-rw-r--r--sys/security/mac/mac_framework.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h
index b12ba2a..3cc856d 100644
--- a/sys/security/mac/mac_framework.h
+++ b/sys/security/mac/mac_framework.h
@@ -133,7 +133,7 @@ void mac_init_bpfdesc(struct bpf_d *);
void mac_init_cred(struct ucred *);
void mac_init_devfsdirent(struct devfs_dirent *);
void mac_init_ifnet(struct ifnet *);
-void mac_init_ipq(struct ipq *);
+int mac_init_ipq(struct ipq *, int flag);
int mac_init_socket(struct socket *, int flag);
void mac_init_pipe(struct pipe *);
int mac_init_mbuf(struct mbuf *m, int flag);
OpenPOWER on IntegriCloud