podman/cmd
Kir Kolyshkin 328c7260fc podman run: fix --pids-limit -1 wrt runc
Since commit c25cc7230 ("Allow a value of -1 to set unlimited pids
limit") podman converts the pids-limit value of -1 to 0 for OCI spec.

Unfortunately, different runtimes (crun and runc) treat pids.limit=0
differently, and the runtime-spec definition is somewhat vague
(see [1]).

Long term fix belongs to runtime-spec and then runtimes should follow
it.

Short term fix is do not convert -1 to 0 (as all runtimes treat -1 as
unlimited).

[NO NEW TESTS NEEDED] -- this is covered by test added in commit 553e53d44.

Fixes: https://issues.redhat.com/browse/RHEL-80973

[1]: https://github.com/opencontainers/runc/issues/4014#issuecomment-1888185352
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-02-26 17:10:12 -08:00
..
podman podman run: fix --pids-limit -1 wrt runc 2025-02-26 17:10:12 -08:00
podman-mac-helper rewrite typo osascript 2024-09-12 14:57:55 +01:00
podman-testing set !remote build tags where needed 2024-08-19 11:41:28 +02:00
podman-wslkerninst Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
quadlet Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00
rootlessport update github.com/rootless-containers/rootlesskit to v2 2024-04-05 12:25:02 +02:00
winpath Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00