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

ossf lazy #35302

Merged
merged 4 commits into from
Jan 1, 2025
Merged

ossf lazy #35302

merged 4 commits into from
Jan 1, 2025

Conversation

xnox
Copy link
Member

@xnox xnox commented Nov 27, 2024

This change will enable using "-fhardened -Wl,-z,lazy" however, it will not yet enable using "-specs openssf.spec -Wl,-z,lazy" will need to open a new bug report about that. Still this should unblock openssf-ication of the affected packages.

  • add lazy test case
    Note, checked that all existing packages that call this test pipeline do not regress with proposed change.

Example on how to use this in practice is shown at #35325 which does work locally and passes build + test (which i think is the original reproducer that triggered this). Note that package uses cgo, and thus CGO_CFLAGS and CGO_LDFLAGS should be used to affect the build.

@octo-sts octo-sts bot added the bincapz/blocking Bincapz (aka malcontent) scan results detected CRITICALs on the packages. label Nov 27, 2024
@xnox xnox marked this pull request as ready for review November 27, 2024 11:01
@xnox xnox requested a review from dannf November 27, 2024 15:50
@xnox xnox added the hardening label Nov 27, 2024
Copy link
Contributor

@dannf dannf left a comment

Choose a reason for hiding this comment

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

Approved w/ an optional suggestion inline. Thanks @xnox !

pipelines/test/compiler-hardening-check.yaml Show resolved Hide resolved
pipelines/test/compiler-hardening-check.yaml Show resolved Hide resolved
@octo-sts octo-sts bot added bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. and removed bincapz/blocking Bincapz (aka malcontent) scan results detected CRITICALs on the packages. labels Dec 31, 2024
@dannf dannf merged commit bb0447e into wolfi-dev:main Jan 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. hardening
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants