-
Notifications
You must be signed in to change notification settings - Fork 8
Hooks into stripped binaries for SSL calls #163
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
base: master
Are you sure you want to change the base?
Conversation
pkg/hooks/ssl/ssllib_hooks.go
Outdated
type SslHooks struct { | ||
links []link.Link | ||
} | ||
|
||
// TODO: incapsulate, add devuce id to the key, delete on file is deleted | ||
var hookInodes, _ = lru.New[uint64, uint32](16384) | ||
|
||
func init() { | ||
if err := offStore.LoadOffsets(offsetdb); err != nil { | ||
panic(err) |
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.
panic doesn't look good,
tracer should be able to work without offsetdb
In case if db is not loaded it should skip all the new code in the workflow
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.
Removed the panic and moved it into an once call
type SslHooks struct { | ||
links []link.Link | ||
} | ||
|
||
// TODO: incapsulate, add devuce id to the key, delete on file is deleted | ||
var hookInodes, _ = lru.New[uint64, uint32](16384) | ||
|
||
func init() { | ||
if err := offStore.LoadOffsets(offsetdb); err != nil { |
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.
This must be duplication of onceFunc part - to be removed
Summary
Add hooks into stripped binaries for SSL calls
Changes