QEMU: is it possible to set the com.apple.vm.networking
entitlement?
#5744
Replies: 3 comments 2 replies
-
Anything that Homebrew builds will also be the way that it builds on people's computers. |
Beta Was this translation helpful? Give feedback.
-
I took a look over at the QEMU issue that was linked, https://gitlab.com/qemu-project/qemu/-/issues/1364. Homebrew does not have a paid developer account for which it uses to sign binaries; binaries are ad-hoc signed on the end user's machine after a package is installed. Note that ad-hoc codesigning is only valid for the machine on which the signing occurs (at least, on more recent machines; I think this may be more lax on some older Intel machines but we can think about the more strict scenario). We cannot ad-hoc codesign binaries in CI and then distribute them and have them work as-is; that's why it is done on the end-user machine side. If the
I haven't fully tested these steps before, but this is how we have been handling the existing If the |
Beta Was this translation helpful? Give feedback.
-
We do not have a mechanism to do this, nor would we want to be distributing provisioning profiles. |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
In qemu/qemu@bcf0a3a QEMU added support for Apple's vmnet framework. Unfortunately access to vmnet requires the
com.apple.vm.networking
entitlement which is not self serve:The absence of this entitlement from QEMU binaries is also noted in https://gitlab.com/qemu-project/qemu/-/issues/1364.
I've written a patch to allow QEMU's build system to generate binaries with this entitlement, but this requires a provisioning profile which has been approved for this entitlement. I don't know how Homebrew's infrastructure manages such secrets, if at all - but would such a thing be possible? I imagine the blessed provisioning profile would need to be guarded in some way so that only QEMU (and perhaps other allowlisted software) could be endowed with this entitlement.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions