Revert overly strict check in link attach to provider #3495
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Resolves: #3484
The values bpf_attach_type and link_type aren't meaningful to ebpfcore and it shouldn't block new values.
Copilot summary:
This pull request primarily focuses on enhancing the logging and error reporting mechanism in the
libs/execution_context
andlibs/shared
directories. The key changes include the addition of more detailed logging messages and the removal of certain conditions in theebpf_validate_attach_provider_data
function.Enhancements to logging and error reporting:
libs/execution_context/ebpf_link.c
: In the_ebpf_link_client_attach_provider
function, the logging mechanism has been updated to provide more detailed information when the provider'sModuleId
orprogram_type
does not match the link'sattach_type
orprogram_type
respectively.libs/execution_context/ebpf_program.c
: In the_ebpf_program_type_specific_program_information_attach_provider
function, the log message now includes theprogram_type
andModuleId
in case of a module ID mismatch.libs/shared/shared_common.c
: In theebpf_validate_attach_provider_data
function, the conditions checking thelink_type
andbpf_attach_type
have been removed, simplifying the function.Testing
CI/CD + testing with ntosebpfext
Documentation
No.
Installation
No.