buildah/internal
Nalin Dahyabhai 9ddac02a51 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 11:30:41 -05:00
..
config linters: unused arguments shouldn't have names 2024-08-07 10:10:35 -04:00
mkcw linters: unused arguments shouldn't have names 2024-08-07 10:10:35 -04:00
open Add an internal/open package 2025-01-17 11:26:15 -05:00
parse internal: use fileutils.(Le|E)xists 2024-04-12 09:58:14 +02:00
sbom linters: unused arguments shouldn't have names 2024-08-07 10:10:35 -04:00
source CI: enable the gofumpt linter 2024-08-15 13:17:44 -04:00
tmpdir CI: enable the gofumpt linter 2024-08-15 13:17:44 -04:00
util CI: enable the gofumpt linter 2024-08-15 13:17:44 -04:00
volumes Fix TOCTOU error when bind and cache mounts use "src" values 2025-01-17 11:30:41 -05:00
types.go Allow cache mounts to be stages or additional build contexts 2025-01-17 11:11:53 -05:00