[ipv6] RFR: 8223214: Inet6AddressImpl.loopbackAddress() should choose loopback address that is available
Arthur Eubanks
aeubanks at google.com
Mon May 6 17:31:52 UTC 2019
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?
*From: *Alan Bateman <Alan.Bateman at oracle.com>
*Date: *Wed, May 1, 2019 at 11:43 PM
*To: *Arthur Eubanks, OpenJDK Network Dev list
On 01/05/2019 23:53, Arthur Eubanks wrote:
> > Webrev: http://cr.openjdk.java.net/~aeubanks/8223214/webrev.00/
> > Bug: https://bugs.openjdk.java.net/browse/JDK-8223214
> >
> NetworkInterface.getByInetAddress denies knowledge of addresses that you
> don't have a permission to connect to so I think this will need a
> privileged block for cases where you run with a security manager. That
> scenario may need a new test too, if only to make sure that early use
> will untrusted code on the stack will pick up the right loopback.
>
> -Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190506/d5d5c389/attachment.html>
More information about the net-dev
mailing list