Skip to content

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 [email protected]

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 <[email protected]>
Reported-by: Rob Landers <[email protected]>
@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
1 check passed
@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