Skip to content

Actions: create a Lint action that catches common silent build mistakes #43451

@woodruffw

Description

@woodruffw

This would be a nice feature advertisement for blight's functionality.

Some things we could lint for:

  • -DFORTIFY_SOURCE instead of -D_FORTIFY_SOURCE: the former is a no-op, meaning that the user's expected fortifications are not actually compiled in.
  • -D_FORTIFY_SOURCE without -O or higher: fortification doesn't work with -O0.
  • Flags that disable baseline mitigations (-fno-stack-protector, -z execstack, others?)

H/T for @disconnect3d for the idea + initial lint ideas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:actionsRelated to blight's supported actionsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions