spiegel_podman/cmd/podman/containers
Kir Kolyshkin 6753a57e6c [v5.4-rhel] 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

Fixes: https://issues.redhat.com/browse/RHEL-82424,
https://issues.redhat.com/browse/RHEL-82425
In the RHEL 9.6 and 10.0 ZeroDay streams

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-06 10:16:05 -05:00
..
attach.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
checkpoint.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
cleanup.go cleanup: add new --stopped-only option 2024-08-27 15:01:23 +02:00
clone.go add --retry --retry-delay to podman run/create 2024-02-29 10:20:21 -05: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 Bump Go module to v5 2024-02-08 09:35:39 -05:00
create.go [v5.4-rhel] podman run: fix --pids-limit -1 wrt runc 2025-03-06 10:16:05 -05:00
diff.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec.go doc: explain --interactive in more detail 2024-11-01 08:23:08 +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 Bump Go module to v5 2024-02-08 09:35:39 -05: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 Bump Go module to v5 2024-02-08 09:35:39 -05:00
mount.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
port.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
prune.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps.go ps: fix display of exposed ports 2024-10-23 15:03:30 +02:00
ps_test.go ps: fix display of exposed ports 2024-10-23 15:03:30 +02:00
rename.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
restart.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
restore.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
rm.go rm --force work for more than one arg 2024-04-04 17:47:28 +02:00
run.go do not set the CreateCommand for API users 2025-01-22 19:13:08 +01:00
runlabel.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
start.go doc: explain --interactive in more detail 2024-11-01 08:23:08 +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 Bump Go module to v5 2024-02-08 09:35:39 -05: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