summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-12-28 21:56:39 +0000
committerrwatson <rwatson@FreeBSD.org>2006-12-28 21:56:39 +0000
commitf1bd87075335e352e754882fde18a44660dc88eb (patch)
tree08745bb851c5a9b6dd88b18da709d5d2ec66ee61 /sys/security
parentadc4ce3133f5dc5c589996052664c0abb7e7c695 (diff)
downloadFreeBSD-src-f1bd87075335e352e754882fde18a44660dc88eb.zip
FreeBSD-src-f1bd87075335e352e754882fde18a44660dc88eb.tar.gz
In mac_inpcb_sosetlabel(), assert the socket lock rather than commenting
that we should assert the socket lock. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac/mac_inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c
index c0b1c98..fe06dca 100644
--- a/sys/security/mac/mac_inet.c
+++ b/sys/security/mac/mac_inet.c
@@ -270,8 +270,8 @@ void
mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)
{
- /* XXX: assert socket lock. */
INP_LOCK_ASSERT(inp);
+ SOCK_LOCK_ASSERT(so);
MAC_PERFORM(inpcb_sosetlabel, so, so->so_label, inp, inp->inp_label);
}
OpenPOWER on IntegriCloud