Skip to content

fs: reject special files for ref reads#6903

Open
tonistiigi wants to merge 1 commit into
moby:masterfrom
tonistiigi:file-validation
Open

fs: reject special files for ref reads#6903
tonistiigi wants to merge 1 commit into
moby:masterfrom
tonistiigi:file-validation

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

Ref and rootfs helpers may read paths supplied by frontends or build outputs. Reject non-regular files before reading them into memory so device and FIFO paths cannot feed no-EOF streams into parsers or bundle injection logic.

This is follow-up to one of the patches in v0.31.1. Similar pattern but in non-security-critical code paths.

Ref and rootfs helpers may read paths supplied by frontends or build outputs.
Reject non-regular files before reading them into memory so device and FIFO
paths cannot feed no-EOF streams into parsers or bundle injection logic.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant