Date: Thu, 25 Dec 2008 11:32:38 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern uipc_domain.c Message-ID: <200812251132.mBPBWtTQ003425@repoman.freebsd.org>
index | next in thread | raw e-mail
rwatson 2008-12-25 11:32:38 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_domain.c
Log:
SVN rev 186493 on 2008-12-25 11:32:38Z by rwatson
Following the recent security advisory, add a comment describing our
invariants and approach for protocol switch methods in protsw_init(),
and also some KASSERT's for non-domain init entries in protocol
switch tables: pru_abort and pru_send must both be implemented.
For now, leave those assertions #if 0'd, since there are a few
protocols that violate them in non-harmful ways. Whether or not we
should enforce pru_abort being implemented for non-stream protocols
is an interesting question: currently abort is only invoked on stream
sockets in situations where un-accepted sockets must be abruptly
closed (i.e., close() on a listen socket with pending connections),
but in principle it is useful for datagram sockets and most datagram
socket types implement it.
MFC after: 3 weeks
Revision Changes Path
1.54 +22 -0 src/sys/kern/uipc_domain.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812251132.mBPBWtTQ003425>
