-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add missing vfkit entitlement #21843
Conversation
I've now tested this with :
|
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.
@ashley-cui @baude PTAL
When there is no signing identity to pass to the macOS `codesign` tool, we can use `-` instead as the identity to perform ad-hoc signing. From `man codesign`: > If identity is the single letter "-" (dash), ad-hoc signing is > performed. Ad-hoc signing does not use an identity at all This makes it easier to test the sign() code-path in package.sh as we'll run the same code regardless of `NO_CODESIGN` being set or not. Signed-off-by: Christophe Fergeau <[email protected]>
That's a left-over from 8794776 Signed-off-by: Christophe Fergeau <[email protected]>
8b26a13
to
24d3cc8
Compare
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 containers#21842 Signed-off-by: Christophe Fergeau <[email protected]>
24d3cc8
to
9f5c20f
Compare
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfergeau, rhatdan 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 |
Cockpit tests failed for commit 94c219f160c085d354b5427ae1310386c43e3e6a. @martinpitt, @jelly, @mvollmer please check. |
abd681a
into
containers:main
The vfkit binary shipped with podman 5.0-rc3 can't start virtual machines, see
#21842
The entitlements are overwritten during the signing process.
Does this PR introduce a user-facing change?