-
Notifications
You must be signed in to change notification settings - Fork 460
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
Fix seccomp value in test #1236
Fix seccomp value in test #1236
Conversation
bed9a6b
to
4c46c79
Compare
The tests have been introduced in kubernetes@ca7be7d and checked for `ecc` in `/proc/self/status` since its creation. We got a new field `Seccomp_filters:` with the Linux commit torvalds/linux@c818c03, means that `ecc` would now match both and interfere with possible test results depending on the host. The field `Seccomp:` got introduced in torvalds/linux@2f4b3bf and has never changed since then, means we can use it directly to make the tests more strict. Refers to kubernetes-sigs/cri-tools#1236 Signed-off-by: Sascha Grunert <[email protected]>
4c46c79
to
1280326
Compare
The seccomp value should be `2` rather than `1`. The test succeeded because we also have the value `Seccomp_filters` which gets matched by "ecc", too. We now check for "Seccomp:" to actually match the right field. Signed-off-by: Sascha Grunert <[email protected]>
1280326
to
26d35da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert, SergeyKanzhelev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind regression
What this PR does / why we need it:
The seccomp value should be
2
rather than1
. The test succeeded because we also have the valueSeccomp_filters
which gets matched by "ecc", too. We now check for "Seccomp:" to actually match the right field.Which issue(s) this PR fixes:
Refers to https://github.com/kubernetes-sigs/cri-tools/pull/1181/files#r1288562050
Special notes for your reviewer:
The field was always
Seccomp:
since torvalds/linux@2f4b3bf and has never changed.The
Seccomp_filters:
field has been added in torvalds/linux@c818c03Does this PR introduce a user-facing change?