RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v4]
Kevin Walls
kevinw at openjdk.org
Wed Jun 12 14:48:13 UTC 2024
On Wed, 12 Jun 2024 14:31:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> test/jdk/javax/management/remote/mandatory/notif/policy.negative line 7:
>>
>>> 5: permission javax.management.MBeanPermission "[domain:type=NB,name=2]", "addNotificationListener";
>>> 6: permission javax.management.MBeanPermission "*", "removeNotificationListener";
>>> 7: permission javax.security.auth.AuthPermission "doAs";
>>
>> I suspect that this means a doPrivileged is missing somewhere. We should not require the application to posess new permissions.
>
> I think Daniel is right, can you remove this permission and paste in the debug output to see where this is happening?
Hmm I may have fixed that since changing the policy files, as I'm not seeing the problem without that AuthPermission any more. Am just retesting everything before updating this...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19624#discussion_r1636613493
More information about the serviceability-dev
mailing list