ECE 441 · Week 10

Modern Computer: Secure Infrastructure

The report and the reproduction package carry the week-5 method, the week-4 build hash with its rebuild commands, and the week-6 peer note.

Week 10 of 10 · Solitude

ECE 441 · Week 10 · In class

The report and the reproduction package carry the week-5 method, the week-4 build hash with its rebuild commands, and the week-6 peer note.

ECE 441 · Week 10 · In class

The report and the reproduction package carry the week-5 method, the week-4 build hash with its rebuild commands, and the week-6 peer note. (continued)

ECE 441 · Week 10 · In class

Unpack the package on the bench PC, rebuild from it, and confirm the image hash matches week 4's.

ECE 441 · Week 10 · Lecture

Written for someone who was not here

ECE 441 · Week 10 · Lecture

What the package must pin

ItemWhy
Source commitWhich code was built
Toolchain name and versionWhich compiler made the bytes
SOURCE_DATE_EPOCH valueWhich date the image carries
Rebuild commands, in orderHow to get from source to image
Expected SHA-256What "the same bytes" means

ECE 441 · Week 10 · Lecture

Packing it so the package is reproducible too

tar --sort=name --mtime=@"$SOURCE_DATE_EPOCH" \
	--owner=0 --group=0 --numeric-owner \
	-cf package.tar package/
gzip -n package.tar
sha256sum package.tar.gz

ECE 441 · Week 10 · Lecture

Checking the rebuild against the hash

sha256sum <rebuilt-image>
echo "<expected-hash>  <rebuilt-image>" | sha256sum -c

ECE 441 · Week 10 · Lecture

The report's sections

  1. What was done and on what board: one paragraph.
  2. Method: the week-5 sheet, as the peer ran it.
  3. Results: the hashes, the peer note, what matched and what did not.
  4. How to reproduce: the package, step by step.
  5. Limits: what was not checked, stated plainly.

ECE 441 · Week 10 · Lab

Lab

  1. Write the report and pack the method, the build hash with its rebuild commands, and the peer note so a student who was not in the section can repeat the work.
  2. Second pass: unpack the package on the bench PC, rebuild from it, and confirm the image hash matches the week-4 hash.

ECE 441 · Week 10 · Lab

Lab (continued)

  1. Assemble the lab hand-in: The paper-style report and the reproduction package containing the week-5 method, the week-4 build hash with its rebuild commands, and the week-6 peer note.

ECE 441 · Week 10 · Lab

Hand in

The paper-style report and the reproduction package containing the week-5 method, the week-4 build hash with its rebuild commands, and the week-6 peer note.

ECE 441 · Week 10 · Homework

Homework

ECE 441 · Week 10 · Homework

Turn in

The audience sentence and the three filenames.

ECE 441 · Week 10 · Read

Read

On the lab site: Module 12, A whole system, has no paper and no reproduction package. This week is past Module 12.

Arrow keys or space to move, F for full screen, N for speaker notes, Home and End for the first and last slide. Print gives one slide per page.