-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Expand the list of got_audit expected duplicate symbols. #122
Conversation
f488755
to
6109106
Compare
…ras/pull/122 (#1172) Add a path argument to GotCommand build_line to support updates in GotAudit. Related changes in hugsy/gef-extras/pull/122 In order to reduce false positives in GotAudit, the build_line function requires the path to the file whose symbols are being described.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, but can you update the got-audit
test to test those changes?
That's definitely an interesting question. :) I think that updating the test would involve adding a new binary that uses at least one of the duplicate symbols, and links to a library that duplicates them. But that starts to get very platform-specific, and it's difficult to determine in testing whether a duplicate symbol is correctly allowed, or if there is simply no symbol duplication. That might be easier if the list of symbols were loaded from a configuration file or something along those lines. (I really don't think hard-coding the set is a good long-term solution.) But I'm not sure what would be idomatic for this project, so if you have any suggestions on how you'd like to see the allowed set of symbols specified, I'd appreciate the feedback. |
Fair, I didn't think of that. That might be a lot of effort for little gain, so for now disregard my previous comment.
True, but let's move there only if/when there's a need for it. Thanks for the PR(s) @gordonmessmer |
Description/Motivation/Screenshots
Based on normal audits of Fedora binaries, the set of expected duplicate symbols has been expanded.
In order to reduce false positives in GotAudit, the build_line function requires the path to the file whose symbols are being described. This change will also not print an ERROR condition if a symbol resolves locally, within the section that requires it.
These changes require hugsy/gef/pull/1172
How Has This Been Tested ?
"Tested" indicates that the PR works and the unit test (i.e.
make test
) run passes without issue.Checklist
adequate tests have been added.
CONTRIBUTING document.