start-aesmd 386 B

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