Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Hooks into stripped binaries for SSL calls#163

Open
bogdanvbalan wants to merge 8 commits into
masterfrom
envoy_download_656
Open

Hooks into stripped binaries for SSL calls#163
bogdanvbalan wants to merge 8 commits into
masterfrom
envoy_download_656

Conversation

@bogdanvbalan

Copy link
Copy Markdown
Contributor

Summary

Add hooks into stripped binaries for SSL calls

Changes

  • import the offset db
  • add the offset into the image so that it can be accessible
  • add the logic to check if the binaries hash is in db and hook to it

Comment thread go.sum Outdated
Comment thread pkg/hooks/ssl/ssllib_hooks.go Outdated
Comment thread pkg/hooks/ssl/ssllib_hooks.go
Comment thread pkg/hooks/ssl/ssllib_hooks.go Outdated
Comment thread pkg/hooks/ssl/ssllib_hooks.go Outdated

func init() {
if err := offStore.LoadOffsets(offsetdb); err != nil {
panic(err)

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor Author

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

var hookInodes, _ = lru.New[uint64, uint32](16384)

func init() {
if err := offStore.LoadOffsets(offsetdb); err != nil {

Copy link
Copy Markdown
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants