RFR: 8341482: Attach API access to /proc filesystem should use doPrivileged [v2]
Larry Cable
duke at openjdk.org
Thu Oct 3 17:22:38 UTC 2024
On Wed, 2 Oct 2024 21:15:11 GMT, Larry Cable <duke at openjdk.org> wrote:
>> this is a fix to: https://bugs.openjdk.org/browse/JDK-8327114
>>
>> to resolve an issue detected in:
>>
>> https://bugs.openjdk.org/browse/JDK-8341246
>>
>> /proc/**/* file accesses should be performed as "privileged" actions to avoid security mgr exceptions.
>
> Larry Cable has updated the pull request incrementally with one additional commit since the last revision:
>
> JDK-8327114: fix to resolve permissions issue as per: 8341246, also privileged exists and isReadable invocations
done
wondering if the other filesystem operations in VirtualMachineImpl also need to be wrapped in doPrivileged blocks - since I'm not aware of any issues I'll assume not and patiently wait for the SecurityManager to be consigned to history.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21312#issuecomment-2391933529
PR Comment: https://git.openjdk.org/jdk/pull/21312#issuecomment-2391936122
More information about the serviceability-dev
mailing list