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

MTV-2236 | Use unshare seccomp profile #1445

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Mar 14, 2025

Issue: Right now the migration using the quay.io/kubev2v/forklift-virt-v2v:latest fails due to the passt missing permissions. The root cause of this issue is in the passt using the unshare(2) syscall. The passt was added to the virt-v2v libguestfs which introduced this issue. The CRI-O is missing the unshare(2) from the seccomp settings. We need to specify to use the seccomp which allows the unshare(2) syscall and add it to the MTVs SecurityContextConstraints.

Fix: Add the unshare seccomp profile to the guest conversion pod.

Ref: https://issues.redhat.com/browse/MTV-2236

Issue: Right now the migration using the quay.io/kubev2v/forklift-virt-v2v:latest
fails due to the passt missing permissions. The root cause of this issue is in the
passt using the `unshare(2)` syscall. The passt was added to the virt-v2v libguestfs
which introduced this issue. The CRI-O is missing the `unshare(2)` from the seccomp settings.
We need to specify to use the seccomp which allows the `unshare(2)` syscall and add it
to the MTVs SecurityContextConstraints.

Fix: Add the unshare seccomp profile to the guest conversion pod.

Ref: https://issues.redhat.com/browse/MTV-2236

Signed-off-by: Martin Necas <[email protected]>
@mnecas mnecas requested a review from yaacov as a code owner March 14, 2025 14:15
@mnecas mnecas changed the title MTV-2236 | Use unshare seccomp MTV-2236 | Use unshare seccomp profile Mar 14, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 15.10%. Comparing base (f1fe5d0) to head (43cae23).
Report is 49 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/kubevirt.go 0.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1445      +/-   ##
==========================================
- Coverage   15.45%   15.10%   -0.36%     
==========================================
  Files         112      113       +1     
  Lines       23377    24310     +933     
==========================================
+ Hits         3613     3672      +59     
- Misses      19479    20351     +872     
- Partials      285      287       +2     
Flag Coverage Δ
unittests 15.10% <0.00%> (-0.36%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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