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

[Cherry-pick] Update virt_launcher.cil installation path in virt-handler container #10493

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

rikenm1
Copy link
Contributor

@rikenm1 rikenm1 commented Sep 18, 2024

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

This PR corrects the path where the SELinux policy virt_launcher.cil is installed in the virt-handler container. A previous commit had incorrectly changed this location, which has caused virt-handler to be unable to find the policy file, resulting in initialization failure of virt-handler.

Change Log
  • Change the installation path of SELinux policy virt_launcher.cil in the virt-handler container
Does this affect the toolchain?

NO

@@ -236,6 +236,7 @@ install -p -m 0644 cmd/virt-launcher/qemu.conf %{buildroot}%{_datadir}/kube-virt
%{_datadir}/kube-virt/virt-handler
%{_bindir}/virt-handler
%{_bindir}/virt-chroot
/virt_launcher.cil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? Should this be installed directly under the root folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Kubevirt's virt-handler container expects the file to be present at the path /virt_launcher.cil.

Copy link
Contributor

@PawelWMS PawelWMS Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right for a package to install something directly under /. Must the virt-handler look for the file only there? It seems like it might be fixed with a configuration change instead of making a package adjust to a tool.

Do you know how this is handled in other distros?

@jslobodzian jslobodzian merged commit cbb0b31 into fasttrack/3.0 Sep 19, 2024
19 of 23 checks passed
@jslobodzian jslobodzian deleted the rmaharjan/cherry-pick-3.0 branch September 19, 2024 00:11
CBL-Mariner-Bot pushed a commit that referenced this pull request Sep 19, 2024
…ler container (#10493)

Co-authored-by: Harshit Gupta <[email protected]>

nbdkit test failed, but this is known and unrelated to the virt-handler change.

(cherry picked from commit cbb0b31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants