chainguard-dev / darkfiles

Darkfiles finds orphaned files in container images and makes them to bad deeds
Apache License 2.0
41 stars 11 forks source link

OS autodetection #7

Open puerco opened 1 year ago

puerco commented 1 year ago

We should enable darkfiles to autodetect what kind of OS it is looking at inside the image.

puerco commented 1 year ago

/cc @zhiruih

SetsuY commented 1 year ago

When I did DiffBOM I just look at known directories of package managers and see if scanning returns an SBOM. Perhaps that's a quick and easy way?

SetsuY commented 1 year ago

8 Did some light testing and it works

puerco commented 1 year ago

Yes exactly just adding some logic that looks for the expected files of each package manager should do trick. :+1: