15
Root Is No Longer Root
There is a Universal Audio sound card on my desk, and its driver is loaded into the system kernel in the old-fashioned way. On a new Mac, installing the program is not enough for that. The laptop has to be shut down, the power button pressed and held until a recovery screen appears in place of the desktop. There is a utility there with startup security settings. In place of full security you have to choose reduced security, tick the box that permits kernel extensions from developers known to Apple, enter the administrator’s password and restart. After the driver is installed the system will ask once more, this time in the ordinary settings, and restart once more.
I used to build my own Linux kernels for network hardware and load into them whatever I saw fit, because there was nobody to ask. Now I ask my laptop’s leave for a sound card driver, the laptop consents, and from that day its settings record that security on it is reduced.
In Unix, from which Mac OS X got its lower half, there is a user named root, and he may do anything. He reads any file, erases any directory and rewrites the system itself, and permission checks simply do not apply to him. The owner of a Mac became that user when he typed sudo and his password in the terminal. So it was from 2001, and the first restrictions fell on the programs he downloaded.
In February 2012 Apple showed developers Gatekeeper, and in July it shipped as part of OS X Mountain Lion. It had three positions in the settings. The Mac could run programs only from the Mac App Store, could add to them programs by developers who had obtained a Developer ID certificate from Apple, or could run anything. The default was the middle position. Between the showing and the release, in April, the Russian company Doctor Web counted more than half a million Macs infected with a trojan called Flashback, which got in through a hole in Java. Oracle had closed it in February, and Apple got round to its own build of Java on the third of April, so it was hard to argue with the new setting that year.
Free, one step away
The rest of the book is free
Leave your email and I will send a link to confirm it. Once you click it, every chapter opens here, on this device, for a year. When a new book comes out I will write to this address; reply “stop” to any email and I will not write again.
Have an INITE account? Sign in and the book opens without an email.
I do not charge for the book. If you would like to support it, you can donate from any chapter.
How your email is stored