Integrated: 8302888: containers/docker/TestJcmd.java fails when run as root under podman
Severin Gehwolf
sgehwolf at openjdk.org
Wed Feb 22 08:38:55 UTC 2023
On Mon, 20 Feb 2023 17:33:51 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> Could I please get a review of this trivial test fix? When `podman` is being used and the test is being run as root, which some of the other container tests require, the test fails because of the not-supported `--userns=keep-id` option:
>
>
> # id -u
> 0
> # podman run --rm -ti --userns=keep-id fedora:37
> Error: keep-id is only supported in rootless mode
>
>
> I propose to only add it when non-root.
>
> Testing:
>
> - [x] Ran the test with podman as root/regular user. Both passed. It failed before when run as root.
This pull request has now been integrated.
Changeset: 7f353895
Author: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7f3538953367f17c8247cc7225ae3b43ed0564c5
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8302888: containers/docker/TestJcmd.java fails when run as root under podman
Reviewed-by: dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/12673
More information about the hotspot-runtime-dev
mailing list