-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
SBOM strace #3613
SBOM strace #3613
Conversation
Thank you for creating a pull request! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A block has been put on this Pull Request as this repository is temporarily under a code freeze due to an ongoing release cycle.
If this pull request needs to be merged during the release cycle then please comment /merge
and a PMC member will be able to remove the block.
If the code freeze is over you can remove this block by commenting /thaw
.
Co-authored-by: Martijn Verburg <[email protected]>
Co-authored-by: Martijn Verburg <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Note: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is only tracing exec operations, so it is not recording anything that's pulled in from, say, development packages / header files on the machine. Is that intentional?
I also wonder if it's worth stripping out the package name from the version of the packages so e.g. the name
field would just be bash
instead of the package name of bash-4.2.46-35.el7_9.x86_6
It is using openat:
Do you have an example ? |
Thanks @sxa yes, sorry that was my debug, those "no pkg" ones are checked and versions found in the 2nd phase as per your suggestion. |
} | ||
Formula formula = new Formula(); | ||
System.err.println("SXAECW: " + name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed as it was just for debug :-)
I could do it in a separate PR but it might be easier to just remove it in yours to avoid a merge conflict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I fix it :)
This comment was marked as resolved.
This comment was marked as resolved.
If I run a build with |
Your SBOM should have the formulation dependencies, eg: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-linux-x64-temurin/124/artifact/workspace/target/OpenJDK21U-sbom_x64_linux_hotspot_2024-02-29-17-15.json |
My output posted above was from my debug branch, not this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good now.
Here is the complete output from the test build:
|
@sxa @henning410 The above ^ output maybe a bit verbose, but i'm happy with that for the moment. I think the really good thing is the ONLY un-identified dependencies is the /usr/local/gcc11, which we can resolve...(in a new issue) so i'm really pleased with that. |
Suggest adding anything that long in a twistie or file attachment in the future :-) |
I also hadn't included We'll also need to think about how often we're going to run with these options. |
@henning410 good work. Happy to see this issue merged 🥇 @sxa, @karianna and @andrew-m-leonard thanks for your valuable input and support 💯 |
This work adds packages used in the build to the SBOM via strace
sbin/common/config_init.sh
with an additonal argumentENABLE_SBOM_STRACE
sbin/build.sh
to check ifENABLE_SBOM_STRACE
is set to true. Check if strace is available an then update build command with strace/workspace/build/src/build/straceOutput
tooling/strace_analysis.sh
to analyse strace output and insert relevant information into SBOMthis PR relates to #3087