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

chore: Move helpers package from libbpfgo to local repository #4090

Merged
merged 3 commits into from
May 30, 2024

Conversation

yanivagman
Copy link
Collaborator

1. Explain what the PR does

Copied helpers package from libbpfgo to local repo to avoid dependency issues. This eliminates frequent updates of libbpfgo and simplifies our workflow. Allows faster bug fixes and updates, improving development efficiency.

2. Explain how to test it

3. Other comments

Copied helpers package from libbpfgo to local repo to avoid dependency issues.
This eliminates frequent updates of libbpfgo and simplifies our workflow.
Allows faster bug fixes and updates, improving development efficiency.
Ensure safe type assertions in kernel config parsing to prevent potential panics.
Used type switch assignment and added type checks for value comparisons.
Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

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

Awesome.

This is the initial part to close aquasecurity/libbpfgo#243 and aquasecurity/libbpfgo#297.

P.S.: The libbpfgo incoming code lacks assertion checks which is enforced in Tracee via revive: https://github.com/aquasecurity/tracee/actions/runs/9305562614/job/25612793173?pr=4090#step:5:15

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
Copy link
Member

Choose a reason for hiding this comment

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

nit: came with the missing blank end line.

Ensure errors from file closures are handled to prevent potential issues.
- Added deferred anonymous functions to check and log errors from f.Close().
- Improved logging for better error tracking.
@yanivagman yanivagman merged commit 759e718 into aquasecurity:main May 30, 2024
32 checks passed
@yanivagman yanivagman deleted the copy_libbpfgo_helpers branch May 30, 2024 17:11
yanivagman added a commit to yanivagman/tracee that referenced this pull request May 30, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (aquasecurity#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
yanivagman added a commit to yanivagman/tracee that referenced this pull request May 30, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (aquasecurity#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
yanivagman added a commit that referenced this pull request May 30, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
yanivagman added a commit to yanivagman/tracee that referenced this pull request Jun 2, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (aquasecurity#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
yanivagman added a commit that referenced this pull request Jun 2, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
yanivagman added a commit to yanivagman/tracee that referenced this pull request Jun 24, 2024
This commit integrates the libbpfgo packages into the tracee repository.
These packages were previously copied over from libbpfgo in a separate
PR (aquasecurity#4090) to resolve dependency issues. Now, tracee is utilizing these
packages, providing better compatibility and ensuring smoother
development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants