capeprivacy / aws-nitro-enclaves-sdk-bootstrap

This project builds the kernel, nsm driver and bootstrap process for AWS Nitro Enclaves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bootstrap for AWS Nitro Enclaves

This project builds the kernel, nsm driver and bootstrap process for AWS Nitro Enclaves.

The referenced kernel in the 'linux-url' file is an example that can be used for building an enclave image. The kernel corresponding to the enclave image blobs in https://github.com/aws/aws-nitro-enclaves-cli/tree/main/blobs is based on the v4.14 Amazon Linux kernel - https://github.com/amazonlinux/linux/tree/amazon-4.14.y/master; it is different than the kernel mentioned in 'linux-url'.

Prerequisites

The kernel download step requires setting up gpg2 with the kernel developer keys. Instructions are available here.

For Debian / Ubuntu systems, install build prequisites:

sudo apt-get install build-essential libncurses-dev bison flex libssl-dev libelf-dev gnupg2

For Amazon Linux 2 / Fedora / RHEL / CentOS install build prequisites:

sudo yum group install "Development Tools" 

Build

The project can be built inside a Docker container to avoid installing toolchains and other packages on your local device.

For example, to build for aarch64 run:

docker build --build-arg BUILD_ARCH=aarch64 .

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

About

This project builds the kernel, nsm driver and bootstrap process for AWS Nitro Enclaves.

License:Apache License 2.0


Languages

Language:C 89.1%Language:Makefile 9.4%Language:Dockerfile 1.6%