by KirinDave · 8y ago · 0 comments
It'd be quite easy to DoS commercial build services with this technique and there seems to be no way to stop it and detecting it can be pretty difficult. Depending on how the logging for such a server is structured, it may even be hard to tell which customer did it.
This is also on the heels of a bug that's been discovered where it's possible to hang many types of system monitoring by abusing a race condition in the UNIX<->mach layer to block all process inspection tools on the OS.
Given that Apple forces us to run OSX build servers, they should take the integrity of basic syscall checking seriously. And that totally ignores the chaos one person with an agenda (or poor project security) can cause if they get code that does this into Homebrew.
Anyway, I'm glad they fixed it now, but the response to our original bug submission didn't inspire a ton of confidence.
I'd assume that most build farms build on VMs to avoid exactly this kind of problem -- building on bare metal seems pretty risky.
Are one allowed to run macOS on a VM that is not apple hardware. Can you just buy macOS and run it on a vm, or is it a gray area?
The SLA¹ for macOS 10.13 allows you to run up to 2 additional copies of macOS in virtual machines on your existing Mac hardware. So each Mac can run up to 3 copies of the OS in total. You may not run it on non-Mac hardware.
These links are fun:
People build Hackintoshes. I’ve personally run OSX VMs on both windows and macs and built a Hackintosh.
Note I am saying OS X, haven’t done this since MacOS.