Adds  :z to the shared /tmp volume mounts in these container tests so the 
SELinux relabel happens automatically. Without it, under SELinux enforcing the 
container can't write to the bind-mounted dir and the tests fail with 
"/tmp/started Permission denied" on cgroups-v2 hosts.

:z matches the existing pattern in TestJcmd.java. Verified on OL9 aarch64 and 
OL9 x64 cgroups-v2 and all 3 tests pass.

Note: there's also a separate host-side cpu cgroup delegation issue on some 
aarch64 hosts that affects TestLimitsUpdating; that's a setup/infra fix, 
tracked separately from this test change


---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8324871: Several container tests fail with java.io.tmpdir directory does not 
exist on linux-aarch64 cgroups-v2

Changes: https://git.openjdk.org/jdk/pull/31890/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31890&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8324871
  Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/31890.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31890/head:pull/31890

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

Reply via email to