spiegel_podman/cmd/podman/containers
Kir Kolyshkin fea21e9bc0 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-03-03 10:55:12 +00:00
..
attach.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
checkpoint.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
cleanup.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
clone.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
commit.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
container.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
cp.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
create.go podman run: fix --pids-limit -1 wrt runc 2025-03-03 10:55:12 +00:00
diff.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
exists.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
export.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
init.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
inspect.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
kill.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
list.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
logs.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
mount.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
pause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
port.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
prune.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
ps_test.go ps: fix display of exposed ports 2024-10-23 15:03:30 +02:00
rename.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
restart.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
restore.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
rm.go rm --force work for more than one arg 2024-04-04 17:47:28 +02:00
run.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
runlabel.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
start.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
stats.go utils: drop conversion float->string->float 2024-03-18 23:06:06 +01:00
stop.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
top.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
unmount.go cmd/podman: refactor Context handling 2025-02-20 10:55:49 +01:00
unpause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
update.go Fix device limitations in podman-remote update on remote systems 2024-12-09 17:35:56 +01:00
wait.go Bump Go module to v5 2024-02-08 09:35:39 -05:00