Skip to content

sbom: discard whiteout files when searching for files in layers#3313

Merged
tonistiigi merged 1 commit intomoby:masterfrom
jedevc:layer-finder-whiteouts
Dec 8, 2022
Merged

sbom: discard whiteout files when searching for files in layers#3313
tonistiigi merged 1 commit intomoby:masterfrom
jedevc:layer-finder-whiteouts

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Nov 24, 2022

⬆️ Follow-up #3258 (comment)

Handle whiteouts by explicitly ignoring them - since SBOMs ideally shouldn't contain records of files that aren't actually contained in the final image, this is already an edge case. However, if it does, it's reasonable to return the layer that created the file, instead of the layer that removed it.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@tonistiigi tonistiigi merged commit 0e1e7d6 into moby:master Dec 8, 2022
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.

2 participants