6 ms·
Booting a Self-signed Linux Kernel
- aray 13y agoNice! It'd be good to pair this with some instructions on how to do safe key management by yourself, because you'll only ever be as safe as you keep your keys. I would link to some here, but I don't even know of any best practices for keeping personal keys safe. (Use smartcard/physical-backed keys?)
- girvo 13y agoThe conventional wisdom I've been given has indeed be using smart cards for key management. Id love to know if this idea is still the best way.
- jlgaddis 13y ago> Use smartcard/physical-backed keys? Basically, yes. I'd be happy to share details of how I generated/store/backup my keys but be forewarned that I went the "extremely paranoid" route.
- philips 13y agoPlease do. I haven't been able to find a vendor for smart cards in the US nor do I know exactly what to buy.
- losethos 13y agoI got a better idea -- tell God to kill them fuckers. Run it in VMware until we get God to kill them and mandate hardware companies make it work. You don't know what you are talking about. I wrote my own bootloader. It loads the first block of the partition and executes it. My installer will write the kernel.bin LBA to the first block of the partition. My kernel.bin calls a few BIOS routines and changes to 64-bit and never goes back to real mode. http://www.templeos.org/Wb/Adam/Boot/ http://www.templeos.org/Wb/Adam/Boot/ Here's kernel.bin's starting code: http://www.templeos.org/Wb/Kernel/KStart.html http://www.templeos.org/Wb/Kernel/KStart.html USB has no place in TempleOS. It is a monstrocity.
- plaguuuuuu 13y agoso.... why exactly does UEFI exist again....? seems useless
- philips 13y agoIt is a replacement for BIOS that first showed up on Itanium platforms. It adds quite a bit of complexity but also opens the door for new features like secure boot. I won't argue whether it is useful but it is in nearly all new desktop hardware including all Apple x86 hardware. It is here to stay.
- emhs 13y agoThis is an example of what I love about the open source community. Some argue that signed boot was an attempt to force the open source community out by holding the keys to the ability to boot, as it were. Some think it's just relentless advancement of the forces of centralization and the establishment's view on security. Regardless of all of that, we can now take advantage of it to ensure our machines can only boot our trusted, linux/bsd/home-built OSes. I'm reminded of the car dealer crossroads from "In the beginning was the command line". Open Source FTW.
- lisper 13y agoUnfortunately, the fact that you have to go through such an elaborate procedure will deter many people from going open-source. Before secure boot, installing Linux was relatively straightforward, and that is one of the reasons for its success. Those days are drawing to a close.
- xymostech 13y agoWhy can't this procedure be standardized and made straightforward? It's hard now, but hopefully in the future it will just be a typical part of installing the operating system.
- lisper 13y agoBecause the procedure requires making changes to the BIOS, and that can't be automated, or even standardized because different manufacturer's BIOSes are different. Recall this passage from the post: "Reboot the machine, and go into the BIOS. Usually this means pounding on the F2 key as the boot starts up, but all machines are different, so it might take some experimentation to determine which key your BIOS needs." That will be a show-stopper for most people.
- mappu 13y agoReally? I think that's a pretty normal part of choosing to boot from external media, which is a pretty normal part of choosing to install an aftermarket operating system.
- pilif 13y agoI'm confused, but maybe you can enlighten me: This article talks about using a tool called KeyTool to manipulate the keys stored on the machine. But if software is capable of doing that, wouldn't that defeat the whole purpose of UEFI to begin with? How is it ensured that it's the user operating KeyTool and not $MALWARE? Why does KeyTool even run on a locked-down-by-MS machine? Have they signed it as part of the Linux Foundation bootloader? Why would they do such a thing? I don't mean for protecting-the-monopoly-reasons, but for straight security reasons as this clearly circumvents anything they were trying to accomplish. I seem to be missing a piece of information here.
- richardwhiuk 13y agoYou have to disable the Secure Boot protection before you can run KeyTool - from the article: Traverse the BIOS settings and find the place where UEFI boot mode is specified, and turn it the “Secure Boot” option OFF."
- cmsimike 13y agoI have to ask but I am not optimistic - would this get Linux booted on a Surface RT?