From 211b72ad2f0fe17b59a0477765b56290109da309 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 19 Apr 2008 18:35:27 +0000 Subject: [PATCH] When propagating a MAC label from an inpcb to an mbuf, allow read and write locks on the inpcb, not just write locks. MFC after: 3 months --- sys/security/mac/mac_inet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c index 0445d915a82..cdf9b6920e7 100644 --- a/sys/security/mac/mac_inet.c +++ b/sys/security/mac/mac_inet.c @@ -201,7 +201,7 @@ mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m) { struct label *mlabel; - INP_WLOCK_ASSERT(inp); + INP_LOCK_ASSERT(inp); mlabel = mac_mbuf_to_label(m); MAC_PERFORM(inpcb_create_mbuf, inp, inp->inp_label, m, mlabel);