summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-09 13:06:56 +0000
committerbz <bz@FreeBSD.org>2009-01-09 13:06:56 +0000
commit60c950d4ff05ccd0e88e7333e5b3d64868165843 (patch)
tree84cf148c8aae2a216120bb00e5abe0953a078f4b /share
parentaa56a975c17dac5562552bb238277fd96c124da2 (diff)
downloadFreeBSD-src-60c950d4ff05ccd0e88e7333e5b3d64868165843.zip
FreeBSD-src-60c950d4ff05ccd0e88e7333e5b3d64868165843.tar.gz
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
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud