-
Notifications
You must be signed in to change notification settings - Fork 309
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
fix: fix partial check for fortify #248
Conversation
slimm609
commented
Jun 2, 2024
- fix partial check for fortify
- remove photon tests
ef6be9c
to
ddeb416
Compare
153b6fc
to
9946a2c
Compare
In this case, with -D_FORTIFY_SOURCE=1 defined as Partial, wouldn't it be more correct that for -D_FORTIFY_SOURCE=2 or -D_FORTIFY_SOURCE=3 to clearly specify this in order not to mislead, that is, instead of Yes, should have Yes (level 2-3)? At least this way there is a warning that the fortification level may not have been set to maximum during compilation. Remove photon tests is welcome, it reduces the time required for checks. |
Partial is only for 1. If we detect that it has ANY fortify and not partial, then its "Yes". Level 1 = Partial I could change Yes to Full instead but we don't want to add extra like "(level 2)" or anything because that makes json, xml, etc more complex. |
f054298
to
8f08bf5
Compare
Level 2 = Yes is incorrect, in this case the fortification is incomplete. Replacing Yes with Full is even more misleading, I don't think it's a solution. I remain to my opinion from the previous post, level 2-3 should be specified until a clear way to distinguish them is found. |
It only needs to add a tab in the lines: |
Partial is level 1, yes is level 2-3. There have already been several discussions that identifying 2 vs 3 is not possible. Adding “(level 2 or 3)” is not a good formatting structure and better for documentation. It also depends on the version of gcc to decide if level 3 is even possible. |
It would be good to at least write this somewhere in the documentation. |
8f08bf5
to
9a9fa9c
Compare
https://github.com/slimm609/checksec.sh/blob/9a9fa9c6ac4629eb3a0f0013f744b914467b2ef9/Dockerfile.ubuntu#L12
|
I am fixing this currently. aarch64 (macbook pro) does not include gcc-multilib so adding a condition to make it easier to debug certain things without having to remove and readd it constantly. The tests for the pipeline will continue to be x86_64 so it will be included for pipeline tests. |
9a9fa9c
to
3b45418
Compare
- remove partial check for fortify due to lacking the ability to detect which version - remove photon tests
3b45418
to
d092bb8
Compare