Date: Mon, 10 May 2004 08:07:23 -0700 (PDT) From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net rtsock.c Message-ID: <200405101507.i4AF7N6L010886@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
csjp 2004/05/10 08:07:23 PDT FreeBSD src repository Modified files: sys/net rtsock.c Log: Zero the un-used portions of the struct sockaddr data before sending it back to userspace, so it does not break bind(2) on raw sockets in jails. Currently some processes, like traceroute(8) construct a routing request to determine its source address based on the destination. This sockaddr data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to make sure the address exists on the interface, the comparison will fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed before initialization. Approved by: bmilekic (mentor) Revision Changes Path 1.110 +1 -0 src/sys/net/rtsock.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405101507.i4AF7N6L010886>