Don't lock sockets around calls to mac_socket_create_mbuf() -- policies

are now expected to acquire the socket lock if they require them.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2009-06-20 17:28:38 +00:00
parent 73c8b6d377
commit 4211da4eb6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194543

View file

@ -51,9 +51,7 @@ ddp_output(struct mbuf *m, struct socket *so)
struct ddpcb *ddp = sotoddpcb(so);
#ifdef MAC
SOCK_LOCK(so);
mac_socket_create_mbuf(so, m);
SOCK_UNLOCK(so);
#endif
M_PREPEND(m, sizeof(struct ddpehdr), M_DONTWAIT);