!NBBFPbiuttRgTqbrcY:nixos.org

NixOS Security Discussions

368 Members
Discussions around Security | Triaging happens in #security:nixos.org125 Servers

Load older messages


SenderMessageTime
29 Jul 2022
@k900:0upti.meK900Since people here might be interested too: I have a mostly working secure boot PoC with bootspec, rEFInd and sbctl at https://gitlab.com/K900/bootis06:08:18
@k900:0upti.meK900It is very much PoC and might set your computer on fire but please try it and tell me if it did06:08:42
@winterqt:nixos.devWinter (she/her)What advantages does this provide over Graham's impl?06:09:03
@k900:0upti.meK900refind instead of sd-boot, and sbctl has some really nice failsafes to prevent you from breaking your system by accident06:10:38
@winterqt:nixos.devWinter (she/her)oh cool06:11:33
@winterqt:nixos.devWinter (she/her)(fwiw i wasn't saying that to like, bash your work, was just curious)06:11:48
@k900:0upti.meK900Oh yeah I know06:11:56
@k900:0upti.meK900No worries06:11:58
@k900:0upti.meK900But my main motivation is to just use sbctl for key management06:12:31
@k900:0upti.meK900Because it does it better than any other tool I've seen06:12:39
@winterqt:nixos.devWinter (she/her)dare I ask why you use objcopy06:12:58
@winterqt:nixos.devWinter (she/her)oh i see06:13:13
@winterqt:nixos.devWinter (she/her)huh, interesting.06:13:22
@k900:0upti.meK900Instead of sbctl? There's a bug with that that I need to poke upstream about06:13:30
@winterqt:nixos.devWinter (she/her)no to set like cmdline and stuff06:13:53
@k900:0upti.meK900But I do want to use it there too, though that's less critical06:13:55
@winterqt:nixos.devWinter (she/her)or would that ideally be done in sbctl06:13:59
@k900:0upti.meK900I mean sbctl just shells out to objcopy06:14:07
@winterqt:nixos.devWinter (she/her)ah is that where you got this invocation from?06:14:26
@k900:0upti.meK900Conceptually that's how you're supposed to use the systemd boot stubs06:14:30
@k900:0upti.meK900They basically self-extract the kernel + initrd + cmdline06:14:57
@k900:0upti.meK900And then run it all correctly06:15:05
@k900:0upti.meK900So you can build one EFI executable and sign it for secure boot06:15:25
@k900:0upti.meK900Without the bootloader or whatever having to validate the initrd, etc06:15:37
@k900:0upti.meK900You just put it all in a big blob and sign the blob06:15:53
@winterqt:nixos.devWinter (she/her)

interesting

wait yeah so where are these magic section offsets from, did you pull those from sbctl or some spec or something

06:16:22
@k900:0upti.meK900It's not ideal for NixOS because we end up with a big blob for every generation because the cmdline changes06:16:25
@winterqt:nixos.devWinter (she/her) * interesting
wait yeah so where are these magic section VMAs from, did you pull those from sbctl or some spec or something
06:16:41
@k900:0upti.meK900But I don't think we have any good ways around it except, uh, writing our own bootloader?06:16:45
@winterqt:nixos.devWinter (she/her)the purely functional bootloader 🚀06:16:58

There are no newer messages yet.


Back to Room ListRoom Version: 9