Skip to content

libbpftune: support quiet mode for bpftune_netns_set()#105

Merged
alan-maguire merged 1 commit intomainfrom
netns-fail
Nov 20, 2024
Merged

libbpftune: support quiet mode for bpftune_netns_set()#105
alan-maguire merged 1 commit intomainfrom
netns-fail

Conversation

@alan-maguire
Copy link
Member

when matching netns cookies with netns, we iterate over all netns and setns() to retrieve the cookie. This can fail but currently we dump error messages in such cases. Error messaging should be reserved for the case where we are entering the netns to either read or write sysctls. So add a bool quiet param to bpftune_netns_set().

Reported-by: Rob Landers landers.robert@gmail.com

when matching netns cookies with netns, we iterate over all
netns and setns() to retrieve the cookie. This can fail but
currently we dump error messages in such cases. Error messaging
should be reserved for the case where we are entering the netns
to either read or write sysctls.  So add a bool quiet param
to bpftune_netns_set().

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Reported-by: Rob Landers <landers.robert@gmail.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 20, 2024
@alan-maguire alan-maguire merged commit 870d466 into main Nov 20, 2024
@alan-maguire alan-maguire deleted the netns-fail branch December 2, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant