RFR: 8308678: (fs) UnixPath::toRealPath needs additional permissions when running with SM (macOS) [v4]
Brian Burkhalter
bpb at openjdk.org
Tue May 30 16:45:07 UTC 2023
On Sat, 27 May 2023 07:54:41 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> * The code to traverse from the root down should move to a separate method and be called in a doPrivileged block. The SM permission checks that are specified by the method are already done at the top of the method.
I had thought of this approach initially but decided against it.
> * Replace provider.newDirectoryStream with direct use of UnixDirectoryStream. This would be my preferred option to avoid code in the implementation make use of the API that is implements.
Will investigate.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14157#issuecomment-1568749471
More information about the nio-dev
mailing list