spiegel_podman/pkg
Giuseppe Scrivano 458fcaa1ba
specgen: fix pod mount options leaking between mounts
Replace the JSON marshal/unmarshal round-trip in Inherit() with
copier.Copy. json.Unmarshal reuses existing slice backing arrays
and does not zero struct fields absent from the JSON (omitempty),
so mount options like "ro" from one mount would leak into another
mount at the same backing-array position.

Fixes the case where running:
  podman run --pod mypod \
    --mount type=bind,src=/a,target=/mylog \
    --mount type=bind,src=/b,target=/mytmp,ro=true \
    alpine touch /mylog/a

incorrectly fails with "Read-only file system" because /mylog
inherits "ro" from /mytmp.

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2026-03-10 09:14:38 +01:00
..
annotations enable gofumpt formatter 2025-11-11 12:32:46 +01:00
api Make libpod return error status code on failure to pull image 2026-03-09 14:26:14 +01:00
auth api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
autoupdate Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
bindings api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
copy enable gofumpt formatter 2025-11-11 12:32:46 +01:00
criu lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
emulation pkg/emulation: remove slice copying 2026-02-11 11:41:10 -08:00
env run modernize -fix ./... 2025-09-10 16:17:04 +02:00
errorhandling pkg/errorhandling: remove deadcode 2025-06-26 19:37:14 +02:00
farm build: handle --iidfile-raw and --metadata-file flags 2026-02-03 09:18:29 +05:30
fileserver Bump Go version to v6 2025-10-23 11:00:15 -04:00
inspect Bump Go version to v6 2025-10-23 11:00:15 -04:00
k8s.io Fix deprecation notice to make gocritic happy. 2025-11-12 15:35:29 -05:00
logiface run modernize -fix ./... 2025-09-10 16:17:04 +02:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
namespaces use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
parallel Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
pidhandle lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ps Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
rctl use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
rootless rootless: use nsfs file handles to persist namespaces 2026-01-20 18:41:59 +01:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
specgen specgen: fix pod mount options leaking between mounts 2026-03-10 09:14:38 +01:00
specgenutil libpod: Implement --log-opt label=LABEL=Value 2026-03-06 10:59:31 +02:00
specgenutilexternal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd Merge pull request #28166 from mtrmac/platform-restriction 2026-03-03 10:27:57 -05:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
trust api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
util Add nocreate option for named volumes 2026-02-26 11:14:32 -05:00