diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-04-19 18:35:27 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-04-19 18:35:27 +0000 |
commit | 1a186b0eb998e033d469368129a28142e8e59171 (patch) | |
tree | db77964716b8c9c1e05332d6def85b71c72a5155 /sys/security | |
parent | e93ab31cf5c2291715911f30e134559825197d92 (diff) | |
download | FreeBSD-src-1a186b0eb998e033d469368129a28142e8e59171.zip FreeBSD-src-1a186b0eb998e033d469368129a28142e8e59171.tar.gz |
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
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac/mac_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c index 0445d91..cdf9b69 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); |