RFR[8230946]: Clarify security manager behaviour of a connected DatagramSocket and DatagramChannel
Alan Bateman
Alan.Bateman at oracle.com
Mon Sep 30 14:27:22 UTC 2019
On 30/09/2019 15:10, Patrick Concannon wrote:
> Hi Alan,
>
>
> A new issue has been created as requested, and can be found here:
> https://bugs.openjdk.java.net/browse/JDK-8231570
In JDK-8231570, I think Chris is concerned that a custom SM will
observe, and may prevent, send/receive from binding where as an implicit
bind by connect is not observed by the SM. It will not be wrong for the
binding in connect to go through the SM too.
The related issue that we touched on here is that
DatagramChannel.receive does not specify that it discards datagrams when
denied by the SM. I think we will need to adjust the wording for the
SecurityException.
-Alan
More information about the nio-dev
mailing list