mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
macos installer: Add vfkit entitlement
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 <cfergeau@redhat.com>
This commit is contained in:
@ -40,6 +40,7 @@ packagedir: podman_version package_root Distribution welcome.html
|
|||||||
../../test/version/version > $(PACKAGE_DIR)/VERSION
|
../../test/version/version > $(PACKAGE_DIR)/VERSION
|
||||||
echo -n $(ARCH) > $(PACKAGE_DIR)/ARCH
|
echo -n $(ARCH) > $(PACKAGE_DIR)/ARCH
|
||||||
cp ../../LICENSE $(PACKAGE_DIR)/Resources/LICENSE.txt
|
cp ../../LICENSE $(PACKAGE_DIR)/Resources/LICENSE.txt
|
||||||
|
cp vfkit.entitlements $(PACKAGE_DIR)/
|
||||||
|
|
||||||
package_root: clean-pkgroot $(TMP_DOWNLOAD)/gvproxy $(TMP_DOWNLOAD)/vfkit
|
package_root: clean-pkgroot $(TMP_DOWNLOAD)/gvproxy $(TMP_DOWNLOAD)/vfkit
|
||||||
mkdir -p $(PACKAGE_ROOT)/podman/bin
|
mkdir -p $(PACKAGE_ROOT)/podman/bin
|
||||||
|
12
contrib/pkginstaller/vfkit.entitlements
Normal file
12
contrib/pkginstaller/vfkit.entitlements
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.network.server</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.network.client</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.virtualization</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Reference in New Issue
Block a user