Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to index filesystem for amazonlinux images #2627

Closed
crazy-max opened this issue Feb 13, 2024 · 0 comments · Fixed by #2644
Closed

unable to index filesystem for amazonlinux images #2627

crazy-max opened this issue Feb 13, 2024 · 0 comments · Fixed by #2644
Assignees
Labels
bug Something isn't working

Comments

@crazy-max
Copy link

What happened:

Latest syft (0.104.0) fails to index amazonlinux images when scanning root using source.NewFromDirectory https://github.com/docker/buildkit-syft-scanner/blob/7f1fed0d3a1494365ff612d81d1c90f777ce9f81/internal/target.go#L37-L43:

unable to get file resolver: unable to create directory resolver: unable to index filesystem path="/run/src/extras/sbom-base/dev/fd/2": unable to index branch="/run/src/extras/sbom-base/dev/fd/2": lstat /proc/1/fd/pipe:[33575]: no such file or directory

What you expected to happen:

Be able to scan

Steps to reproduce the issue:

Repro with this Dockerfile using BuildKit Syft Scanner: https://github.com/docker/buildkit-syft-scanner/actions/runs/7883917948/job/21511817145?pr=94#step:7:75

FROM amazonlinux:2 AS base
ARG BUILDKIT_SBOM_SCAN_STAGE=true
RUN yum install -y findutils
docker buildx build --sbom=true .

Anything else we need to know?:

Tried bumping to latest 0.104.0 and still repro in docker/buildkit-syft-scanner#94.

Let me know if you need more info,, thanks.

Environment:

  • Output of syft version: 0.104.0
  • OS (e.g: cat /etc/os-release or similar):

cc @cdupuis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants