Provide `-fcf-protection=none` in `test-security-check.py` explicitly #27819

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:230604-security changing 1 files +18 −18
  1. hebasto commented at 12:15 PM on June 4, 2023: member

    The contrib/devtools/test-security-check.py script is not robust enough to work not only in the well-predicted Guix environment but also in the wild.

    For example, on Ubuntu 22.04, GCC has -fcf-protection=full by default. See:

     gcc -E -dM - < /dev/null | grep CET
    #define __CET__ 3
    

    This PR explicitly provides -fcf-protection=none in cases where it is expected.

  2. Provide `-fcf-protection=none` in `test-security-check.py` explicitly aa79cf5909
  3. DrahtBot commented at 12:15 PM on June 4, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    Concept NACK fanquake

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  4. fanquake commented at 12:25 PM on June 4, 2023: member

    is not robust enough to work not only in the well-predicted Guix environment but also in the wild.

    It's not meant to be, and this isn't a design goal.

    Concept NACK.

  5. hebasto closed this on Jun 4, 2023

  6. hebasto commented at 12:42 PM on June 4, 2023: member

    It's not meant to be, and this isn't a design goal.

    I agree that security-check.py is supposed to be run in the Guix environment.

    But I don't see the point of the same restrictions for test-security-check.py. Mind elaborating this "design goal"? Maybe document it?

    Btw, the same approach is used for some other flags.

  7. fanquake commented at 8:56 AM on June 5, 2023: member

    But I don't see the point of the same restrictions for test-security-check.py.

    If the only reason test-security-check.py exists is to sanity-check a script that only runs in Guix, why would it need to work in any other environment.

  8. bitcoin locked this on Jun 4, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me