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
This commit is contained in:
Robert Watson 2008-04-19 18:35:27 +00:00
parent 8328afb791
commit 211b72ad2f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178321

View File

@ -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);