]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: svn r182056, cvs 1.154 tcp_syncache.c
authorbz <bz@FreeBSD.org>
Sat, 30 Aug 2008 16:49:36 +0000 (16:49 +0000)
committerbz <bz@FreeBSD.org>
Sat, 30 Aug 2008 16:49:36 +0000 (16:49 +0000)
commita7484b3cdb22a3730a0f15d3bee19beb72181087
tree14114f0bc312f33eac3dee953bfb3a46bab0e2de
parent78b32e6d3d6bbe5c658fb18dc34d8f63a812ae31
MFC: svn r182056, cvs 1.154 tcp_syncache.c

  Cache the cred locally in _syncache_add() while holding the locks, so
  we can be sure that it's valid.
  In case we abort early free it again else put it into the syncache.

  We need the cred in the syncache to be able to restrict what will be
  exportet by the sysctl helper function syncache_pcblist() (to netstat)
  within jails.

PR: kern/126493
sys/netinet/tcp_syncache.c