[jdk21u-dev] RFR: 8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases [v2]
Alexey Bakhtin
abakhtin at openjdk.org
Tue Sep 3 18:17:44 UTC 2024
> … on older docker releases
>
> Please review the fix for regression on the old Docker versions (before v18.04).
>
> [JDK-8316304](https://bugs.openjdk.org/browse/JDK-8316304) was backported to JDK21, requiring statx syscall support.
> In the old Docker versions, the default seccomp profile does not allow statx syscall and fails with EPERM error code.
> Suggest fixing this issue by fallback to alternative implementation at runtime if syscall is not allowed.
>
> The same issue with copy_file_range syscall.
>
> The fix was initially submitted against upstream jdk ( https://github.com/openjdk/jdk/pull/20484 ) but after discussion submitted to JDK21
Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:
revert changes for copy_file_range and ENOSYS for statx
-------------
Changes:
- all: https://git.openjdk.org/jdk21u-dev/pull/951/files
- new: https://git.openjdk.org/jdk21u-dev/pull/951/files/bd5b120f..74acb11f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=951&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=951&range=00-01
Stats: 8 lines in 3 files changed: 0 ins; 4 del; 4 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/951.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/951/head:pull/951
PR: https://git.openjdk.org/jdk21u-dev/pull/951
More information about the jdk-updates-dev
mailing list