buildah/internal
Nalin Dahyabhai 8b46071ab5 Fix TOCTOU error when bind and cache mounts use "src" values
Fix a time-of-check/time-of-use error when mounting type=bind and
type=cache directories that use a "src" flag.  A hostile writer could
use a concurrently-running stage or build to replace that "src" location
between the point when we had resolved possible symbolic links and when
runc/crun/whatever actually went to create the bind mount
(CVE-2024-11218).

Stop ignoring the "src" option for cache mounts when there's no "from"
option.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-01-17 17:07:16 -05:00
..
config
mkcw
open
parse
sbom
source
tmpdir
util
volumes Fix TOCTOU error when bind and cache mounts use "src" values 2025-01-17 17:07:16 -05:00
types.go