mirror of
https://github.com/containers/podman.git
synced 2026-03-29 12:03:29 -04:00
Since commitc25cc7230("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 commit553e53d44. 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>