From 9f5c20f9bf175085c8db174cee3e0fc1e7a4c776 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 27 Feb 2024 17:19:20 +0100 Subject: [PATCH] macos installer: Add vfkit entitlement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vfkit needs the com.apple.security.virtualization entitlement or it wont' be able to start virtual machines: Error: Error Domain=VZErrorDomain Code=2 Description="Invalid virtual machine configuration. The process doesn’t have the “com.apple.security.virtualization” entitlement." UserInfo={ NSLocalizedFailure = "Invalid virtual machine configuration."; NSLocalizedFailureReason = "The process doesn\U2019t have the \U201ccom.apple.security.virtualization\U201d entitlement."; } This fixes https://github.com/containers/podman/issues/21842 Signed-off-by: Christophe Fergeau --- contrib/pkginstaller/Makefile | 1 + contrib/pkginstaller/vfkit.entitlements | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 contrib/pkginstaller/vfkit.entitlements diff --git a/contrib/pkginstaller/Makefile b/contrib/pkginstaller/Makefile index 82cfec94cd..f6355732ea 100644 --- a/contrib/pkginstaller/Makefile +++ b/contrib/pkginstaller/Makefile @@ -40,6 +40,7 @@ packagedir: podman_version package_root Distribution welcome.html ../../test/version/version > $(PACKAGE_DIR)/VERSION echo -n $(ARCH) > $(PACKAGE_DIR)/ARCH cp ../../LICENSE $(PACKAGE_DIR)/Resources/LICENSE.txt + cp vfkit.entitlements $(PACKAGE_DIR)/ package_root: clean-pkgroot $(TMP_DOWNLOAD)/gvproxy $(TMP_DOWNLOAD)/vfkit mkdir -p $(PACKAGE_ROOT)/podman/bin diff --git a/contrib/pkginstaller/vfkit.entitlements b/contrib/pkginstaller/vfkit.entitlements new file mode 100644 index 0000000000..3b2c941a9f --- /dev/null +++ b/contrib/pkginstaller/vfkit.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.network.server + + com.apple.security.network.client + + com.apple.security.virtualization + + +