Date: Fri, 9 Jan 2009 13:06:56 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet in.c src/sys/netinet6 in6.c Message-ID: <200901091308.n09D822M037380@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2009-01-09 13:06:56 UTC
FreeBSD src repository
Modified files:
sys/netinet in.c
sys/netinet6 in6.c
Log:
SVN rev 186948 on 2009-01-09 13:06:56Z by bz
Make SIOCGIFADDR and related, as well as SIOCGIFADDR_IN6 and related
jail-aware. Up to now we returned the first address of the interface
for SIOCGIFADDR w/o an ifr_addr in the query. This caused problems for
programs querying for an address but running inside a jail, as the
address returned usually did not belong to the jail.
Like for v6, if there was an ifr_addr given on v4, you could probe
for more addresses on the interfaces that you were not allowed to see
from inside a jail. Return an error (EADDRNOTAVAIL) in that case
now unless the address is on the given interface and valid for the
jail.
PR: kern/114325
Reviewed by: rwatson
MFC after: 4 weeks
Revision Changes Path
1.117 +9 -1 src/sys/netinet/in.c
1.95 +4 -0 src/sys/netinet6/in6.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901091308.n09D822M037380>
