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

Track supporting DPKG evidence #3228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Sep 12, 2024

This elevates supporting locations on each package to be expressed with evident-by relationships --today we only do this with primary locations. This additionally adds a new 'kind' param to the relationship data, showing if this is 'primary' or 'supporting' evidence.

This helps with #3191 since now these files would be accounted for by a package (without claiming they are owned by it), thus, it will no longer show up as an unknown when #2998 lands.

Closes #3191

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman marked this pull request as ready for review September 18, 2024 17:21
pkg.NewLicenseFromLocations("GPL-1", file.NewVirtualLocation("/usr/share/doc/libpam-runtime/copyright", "/usr/share/doc/libpam-runtime/copyright")),
pkg.NewLicenseFromLocations("GPL-2", file.NewVirtualLocation("/usr/share/doc/libpam-runtime/copyright", "/usr/share/doc/libpam-runtime/copyright")),
pkg.NewLicenseFromLocations("LGPL-2.1", file.NewVirtualLocation("/usr/share/doc/libpam-runtime/copyright", "/usr/share/doc/libpam-runtime/copyright")),
pkg.NewLicenseFromLocations("GPL-1", file.NewLocation("/usr/share/doc/libpam-runtime/copyright")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you help me understand why this stopped being a virtual location and became a regular location? Is this change visible to users in the eventual SBOM?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was cleanup -- since I was in this file and making new Locations, I noticed that all params to the original call were the same, which is the same as using the NewLocation constructor. So I made the remaining parts of the file that were using this function needlessly as consistent as the new code I was adding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identify bash.preinst
2 participants