mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 17:25:09 +00:00
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:
parent
73c8b6d377
commit
4211da4eb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194543
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue