Skip to content
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

Add BPFLink.Destroy #69

Merged
merged 1 commit into from
Sep 3, 2021
Merged

Conversation

derekparker
Copy link
Contributor

There is currently no way to remove a BPF probe link with this library
so this patch adds support for the bpf_link__destroy function.

There is currently no way to remove a BPF probe link with this library
so this patch adds support for the `bpf_link__destroy` function.
@grantseltzer grantseltzer self-requested a review September 2, 2021 22:29
Copy link
Contributor

@grantseltzer grantseltzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @derekparker !

@grantseltzer grantseltzer merged commit 29bc86e into aquasecurity:main Sep 3, 2021
@derekparker derekparker deleted the add-link-detach branch September 7, 2021 21:15
geyslan added a commit to geyslan/kubearmor-libbpf that referenced this pull request Sep 28, 2021
Detach was introduced as a temporary empty method.

After discussions

aquasecurity/libbpfgo#74
aquasecurity/libbpfgo#78

it was understood that it isn't feasible to use Detach() directly.

In the meantime, Destroy() was implemented by a third contributor.

aquasecurity/libbpfgo#69

This get rids of the previous empty function making room for the
Destroy() wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants