ENTA depends on the following two packages. Install them with the following command:
apt install iproute2 iptables
For iptables to work properly, replace iptables-legacy
with iptables-nft
:
update-alternatives --set iptables /usr/sbin/iptables-nft
In order to run the demo, please install tmux
:
apt install tmux
-
Download source code
-
Fetch submodules
git submodule update --init
-
Compile ENTA and ENTG
As the project is written in Rust, please install the rust toolchain according to guidelines before starting the build.
make build
-
Run demo
make demo
-
Build docker image
docker build --tag eng --file Dockerfile .
-
Start container
After the container is started, it will run
make demo
by default.docker run -it --privileged --rm \ -v /dev/sgx_enclave:/dev/sgx/enclave \ -v /dev/sgx_provision:/dev/sgx/provision \ -v /etc/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf:ro \ eng
For more information about the demo, check out this doc.