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 test for namespaces and fix bug on 5.4 and below #110

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

willfindlay
Copy link
Contributor

@willfindlay willfindlay commented May 31, 2022

Please see individual commit messages.

Add a unit tests to verify namespaces in Tetragon exec events.

Signed-off-by: William Findlay <[email protected]>
Linux 5.4 does not support Time namespaces, but GetCurrentNamespace() was not respecting
this. Update the function to set Namespaces.Time and Namespaces.TimeForChildren to nil in
this case.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/test-namespaces branch from f62c3d3 to f02bf1a Compare June 3, 2022 15:49
@willfindlay willfindlay marked this pull request as ready for review June 3, 2022 15:49
@willfindlay willfindlay requested a review from a team as a code owner June 3, 2022 15:49
@willfindlay willfindlay requested review from sharlns and jrfastab June 3, 2022 15:49
@willfindlay willfindlay changed the title add test for namespaces and fix bug on 5.4 add test for namespaces and fix bug on 5.4 and below Jun 3, 2022
@jrfastab jrfastab merged commit 5a708a7 into cilium:main Jun 7, 2022
@willfindlay willfindlay deleted the pr/willfindlay/test-namespaces branch June 7, 2022 04:54
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