12345678910111213 |
- #!/bin/bash
- # This is the entrypoint script for the docker image. It runs inside
- # the docker, and starts aesmd, which is needed by SGX.
- chgrp sgx /dev/sgx_enclave
- chgrp sgx_prv /dev/sgx_provision
- su -s /bin/bash aesmd -c "LD_LIBRARY_PATH=/opt/intel/sgxpsw/aesm /opt/intel/sgxpsw/aesm/aesm_service" 2>/dev/null
- if [ "$*" = "" ]; then
- exec bash
- else
- exec /bin/bash -c "$*"
- fi
|