RFR: 8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases [v2]

Alexey Bakhtin abakhtin at openjdk.org
Wed Aug 28 23:44:37 UTC 2024


> Please review the fix for regression on the old docker versions (before v18.04)
> 
> Suggest to verify if statx is permitted during initialization
> 
> statx(-1, "", AT_EMPTY_PATH, 0, &statx_buf) return EPERM if statx syscall not permitted and EBADF otherwise
> 
> Fallback to stat() if statx() not permitted
> 
> Related  jtreg tests passed

Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:

  Verify EPERM at runtime

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20484/files
  - new: https://git.openjdk.org/jdk/pull/20484/files/fe5e07c9..ae988a25

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20484&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20484&range=00-01

  Stats: 28 lines in 3 files changed: 10 ins; 13 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/20484.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20484/head:pull/20484

PR: https://git.openjdk.org/jdk/pull/20484


More information about the nio-dev mailing list