RFR: 8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases
Brian Burkhalter
bpb at openjdk.org
Tue Aug 27 16:01:03 UTC 2024
On Tue, 27 Aug 2024 14:40:00 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:
> If syscall at initialization is not allowed I can check error code at runtime and fallback to previous implementation if statx is not permitted
To avoid contention in `statx_wrapper`, perhaps you could change to using
return syscall(__NR_statx, dirfd, pathname, flags, mask, statxbuf);
as previously suggested, and also change `my_statx_func` to be a `jboolean` which could be set to `JNI_FALSE` if the syscall gets `EPERM`? If the flag were unset twice, it might not matter.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20484#issuecomment-2312952018
More information about the nio-dev
mailing list