spiegel_podman/cmd/podman/containers
0xdvc 35c602bfbb fix: improve userns validation when joining pods
- remove old CLI validation that only checked --pod flag
- add validation in namespaces.go to catch all paths (cli, quadlet, api)
- block userns mixing for all pods with infra, not just ipc/net
- update error message to be clearer
- fix test cleanup to use PodmanExitCleanly()
- use dynamic pod names in system tests to avoid conflicts

fixes #26848

Signed-off-by: 0xdvc <neilohene@gmail.com>

<MH: Fixed cherry-pick conflicts>

Signed-off-by: Matt Heon <matthew.heon@pm.me>
2026-02-06 15:36:47 -05:00
..
attach.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
checkpoint.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
cleanup.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
clone.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
commit.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
container.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
cp.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
create.go fix: improve userns validation when joining pods 2026-02-06 15:36:47 -05:00
diff.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec.go feat(exec): Add --no-session flag for improved performance 2026-02-06 15:36:47 -05:00
exists.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
export.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
init.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
inspect.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
kill.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
list.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
logs.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
mount.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pause.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
port.go use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
prune.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ps.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
ps_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rename.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
restart.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
restore.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rm.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
run.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
runlabel.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
start.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
stats.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
stop.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
top.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
unmount.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
unpause.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
update.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
wait.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00