[ipv6] RFR: 8223214: Inet6AddressImpl.loopbackAddress() should choose loopback address that is available
Alan Bateman
Alan.Bateman at oracle.com
Mon May 6 17:49:28 UTC 2019
On 06/05/2019 18:31, Arthur Eubanks wrote:
> I added a test that set an empty SecurityManager and called
> InetAddress.getLoopbackAddress(). It passed, there were no permission
> issues.
> Then I looked at the code around NetworkInterface.getByInetAddress(),
> and I don't see anything related to security managers, either in
> NetworkInterface.getByInetAddress() or the native code it calls. There
> is also no documentation on permission issues, unlike some of the
> other methods in NetworkInterface (e.g.
> NetworkInterface.getInetAddresses()). So it looks like there are no
> security manager issues here?
>
My apologies, I was thinking NetworkInterface.getInetAddresses() which
is specified to not leak local address. With
NetworkInterface.getByInetAddress then you've already got a reference to
the InetAddress so it's not an issue.
-Alan.
More information about the net-dev
mailing list