This allows to build Kernel in verificable way to know if .deb indeed matches the source code of kernel without added backdoors/viruses.

To use it just execute the 2 simple commands described in section "Install" below.

To get all needed files, on Debian use command: git clone https://github.com/mempo/deterministic-kernel.git

This is work in progress, ?Mempo team will help you in using/testing this software, contact us on #mempo and #debian-kernel on irc.oftc.net (see http://www.oftc.net/) or use this chat-webpage (for anon. use I2P irc #mempo) or see ?Mempo-Contact

As of now (2014-01-16) this work is:

Progress

Issues to solve:

Steps of this project:

(some steps where removed as plans changed)

See general instructions: ReproducibleBuilds how ever they are mainly for step 2,3.

We are trying to create a script that does this deterministic build in a bit more automated way with added:

This page should be usable for everyone in Debian, and script we're writing will be later easy to run in pure-Debian mode too.

Install

You can help yourself and this project easily!

As root install dependencies:

apt-get install faketime time git build-essential libncurses5-dev libncursesw5-dev kernel-package md5deep gcc-4.7-plugin-dev g++ make time

Also build dpkg version from jessie (assuming you build on wheezy):

deb http://ftp.pl.debian.org/debian/  jessie main
deb-src http://ftp.pl.debian.org/debian/  jessie main
deb http://security.ftp.pl.debian.org/debian/  jessie main

On other vesions od dpkg the script still will work mostly, all the files inside of .deb should be the same, how ever the .deb file itself can have other checksum

Create unix user kernelbuild preferably (or, on any user).

Get and build modified tar:

In home directory run:

rm -rf deterministic-kernel/ ; git clone https://github.com/mempo/deterministic-kernel.git && cd deterministic-kernel/  && bash run.sh

press ENTER to confirm (e.g. the download) and then kernel should build :)

Resources: https://github.com/mempo/deterministic-kernel https://github.com/Happuri/deterministic-kernel

If important, then we builded on settings: computer hostname was "workbench", user name was (since 2013-12-09) "kernelbuild", working directory/path was "/home/kernelbuild/deterministic-kernel/" for most tests, if you use same and below instructions then you should get identical result to amount described here.

Trust chain

For ?Mempo-Kernel: obtain the .deb from mempo repository, then check checksum of it with trustworthy people who did build .deb from source and seen it produces same binary as in repository.

So the full chain trust is:

In time, we will upgrade the build script to have the final .deb file identical, then procedure is even faster (just run run.sh and publish sha512 of your .deb).

?Mempo project might release the .deb in own repository for easy installation for people that want this.

Ultimately, Debian.org might one day officially include Mempo-kernel in Debian repository (though, even then checksum based verification will be more secure, in case of ftp master key being compromised).


Tests - please test this script and report any problems to ?Mempo and on IRC #mempo also add here to wiki in /Test

CategoryKernel