Coder Social home page Coder Social logo

jluebbe / meta-code-signing Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 65 KB

infrastructure for unifying access to keys on the file system and HSMs

Home Page: https://pretalx.com/openembedded-workshop-2023/talk/3C8MFF/

License: MIT License

BitBake 71.25% NASL 13.08% Shell 15.67%

meta-code-signing's Introduction

meta-code-signing provides infrastructure for unifying access to keys on the
file system and HSMs.

This repository contains two layers:

meta-code-signing:
  A reusable layer providing signing.bbclass, which also contains some
  documentation. This could be upstreamed to meta-oe.

meta-code-signing-demo:
  qemu-based demo with signed fit image, dm-verity, rauc bundle and kernel
  modules.

A talk about this layer was held at OpenEmbedded Workshop 2023:
https://pretalx.com/openembedded-workshop-2023/talk/3C8MFF/

To try the demo, run only the following steps should be needed on a system
prepared for building with Yocto:

  $ . ./oe-init-build-env
  $ vi conf/local.conf
  ... set DL_DIR and other options needed for your system
  $ bitbake qemu-virt-image update-bundle
  $ ./qemu.sh

In qemu, the following steps should happen:

- barebox starts and loads the kernel FIT image
- the kernel starts and mounts the dm-verity-protected rootfs
- the kernel loads and checks module signatures

After logging in as root, you can use rauc to check the bundle signature:

  rauc info /deploy/update-bundle-qemuarm.raucb

or install an update:

  rauc install /deploy/update-bundle-qemuarm.raucb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.