-
Notifications
You must be signed in to change notification settings - Fork 624
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
qemu: ask to sign QEMU binary when the binary is not properly signed #1743
Conversation
cc @lima-vm/maintainers I'll release v0.17.2 after merging this workaround. |
ee96eae
to
a433811
Compare
Wouldn't this sign any random qemu binary in the path ? |
Sorry what do you mean? |
How do we know that the current qemu is the authentic homebrew ? But maybe this is not so much about authenticating the prebuilt binary, as it is about adding |
We may check if the binary path contains "/Cellar/" ? |
a433811
to
2a6cbfb
Compare
Workaround for issue 1742 . This workaround is needed because Homebrew's QEMU binary is not properly signed since v8.0.4. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2a6cbfb
to
c0b48a9
Compare
Modified to open a |
"text/template" | ||
"time" | ||
|
||
"github.com/lima-vm/lima/pkg/driver" | ||
"github.com/lima-vm/lima/pkg/driverutil" | ||
"github.com/lima-vm/lima/pkg/qemu" | ||
"github.com/lima-vm/lima/pkg/qemu/entitlementutil" |
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.
(I don't want to let pkg/start
depend on a specific driver, but I'm going to merge this right now anyway, as the Homebrew issue #1742 is critical. We can refactor this later.)
On Mac Big Sur entitlement check exits on: Is there a way to turn off entitlements check all together? |
Addressed in: Will be in v0.19 |
Workaround for:
[hostagent] Driver stopped due to error: "signal: abort trap"
(or"exit status 255"
) ...QEMU has already exited
#1742This workaround is needed because Homebrew's QEMU binary is not properly signed since v8.0.4. Homebrew/homebrew-core#139409 (comment)