!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

552 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30126 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
2 Dec 2022
@cbwang:matrix.orgcbwangHi all, is it possible for nixos to build gcc through https://github.com/oriansj/stage0-posix in order to mitigate the Ken Thompson hack?17:48:27
@rick:matrix.ciphernetics.nlRick (Mindavi)It is possible, but there is no ready-to-use solution17:53:31
@cbwang:matrix.orgcbwangThanks! I'm basically naively wondering if it is possible to build an ENTIRE minimum NixOS iso completely from source code of free software and with COMPLETELY no binaries (except stage0) involved at all.18:08:13
@cbwang:matrix.orgcbwangAnd, if the above procedure is possible, then the next goal would be make this process reproducible 😆18:08:54
@cbwang:matrix.orgcbwang* And, if the above procedure is possible, then the next goal would be making this process reproducible 😆18:09:24
@rick:matrix.ciphernetics.nlRick (Mindavi)Technically it should be, yeah18:10:42
@rick:matrix.ciphernetics.nlRick (Mindavi)But by default the bootstrap binaries are used18:10:54
@rick:matrix.ciphernetics.nlRick (Mindavi)And your host kernel18:10:59
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
And your host kernel
But if this process can be reproducible no matter what host OS is, no matter what CPU is, then the host kernel is not required to be trusted
18:12:42
@rick:matrix.ciphernetics.nlRick (Mindavi)Ah yes18:12:57
@rick:matrix.ciphernetics.nlRick (Mindavi)True :)18:12:59
@rick:matrix.ciphernetics.nlRick (Mindavi)I always wonder where one would start...18:14:26
@cbwang:matrix.orgcbwangBesides, if we really can achieve that, then we are going to have the first host OS that all the binaries are free18:14:22
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
I always wonder where one would start...
A 256-byte assembler "hex0" from https://github.com/oriansj/bootstrap-seeds
18:15:41
@cbwang:matrix.orgcbwang* A 256-byte assembler "hex0" from https://github.com/oriansj/bootstrap-seeds/blob/master/POSIX/x86/hex0-seed18:16:23
@rick:matrix.ciphernetics.nlRick (Mindavi)I mean18:16:45
@rick:matrix.ciphernetics.nlRick (Mindavi)Do you burn that on a usb stick and boot from it?18:16:56
@rick:matrix.ciphernetics.nlRick (Mindavi)🧐18:17:01
@rick:matrix.ciphernetics.nlRick (Mindavi)Or do you start with a host os and a statically linked nix or so?18:17:35
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
Do you burn that on a usb stick and boot from it?
I would prefer to burn it on a DVD
18:17:45
@rick:matrix.ciphernetics.nlRick (Mindavi)Or whatever nix18:17:50
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
Or do you start with a host os and a statically linked nix or so?
Start with a nix that is built from a gcc bootstrapped from stage0
18:18:38
@rick:matrix.ciphernetics.nlRick (Mindavi)And that you can build on whatever host I guess?18:20:23
@cbwang:matrix.orgcbwangYeah, and the nix binary should be reproducible on any x86 compatible hardware.18:21:00

Show newer messages


Back to Room ListRoom Version: 6