-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Hardened build flags #218
Labels
stale
The item is going to be closed soon because of inactivity
Comments
Closed
Closed
This issue is stale because it has been open for 120 days with no activity. |
github-actions
bot
added
the
stale
The item is going to be closed soon because of inactivity
label
Mar 6, 2024
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
According to flutter/flutter#4368, it should be possible to pass some compiler flags to Flutter's build system. This means that it should be possible to get a PIE binary with hardening measures such as RELRO, no RUNPATH, and stack canaries.
Proposed changes: add
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -fPIC -fPIE -fvisibility=hidden
to the compiler flags, and add-pie
to the LDFLAGS.To Reproduce
Use checksec.sh on the Fluffychat binary to get the following output:
Additional information:
The text was updated successfully, but these errors were encountered: