Date: Sat, 7 Feb 2009 13:51:15 +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: <200902071351.n17DpSO1065611@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2009-02-07 13:51:15 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/netinet in.c
sys/netinet6 in6.c
Log:
SVN rev 188285 on 2009-02-07 13:51:15Z by bz
MFC: r186948
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
Revision Changes Path
1.102.2.3 +9 -1 src/sys/netinet/in.c
1.73.2.5 +4 -0 src/sys/netinet6/in6.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902071351.n17DpSO1065611>
