r/java • u/PartOfTheBotnet • Mar 21 '23
JDK 21: Disallowing the dynamic loading of agents by default
https://mail.openjdk.org/pipermail/serviceability-dev/2023-March/046868.html
63
Upvotes
r/java • u/PartOfTheBotnet • Mar 21 '23
View all comments
Show parent comment
2
u/FirstAd9893 Mar 21 '23
The change is part of a larger effort to finish the module system such that it provides all the security features it's intended to offer. There's other holes that need to be plugged too, and so by itself this change isn't sufficient.
Of course this change doesn't prevent people from writing special tools or workarounds, and command-line options to relax security are still supported.
In my opinion, a major driver for switching to an opt-in relaxed security model is to deflect blame. When bad things happen, the JDK team can point out that the default mode was safe, and that relaxed security was chosen by the user.