title: SGX Local Attestation sample returning 0x3002 in simulator
body: <p>I cannot for the life of me get the LocalAttestation sample to run correctly on a fresh Linux install, following the instructions successfully. Given this is being built in simulation mode, I would have thought there were no additional dependencies?</p>
  
  <p>I modified the demo to provide extra output, and this line returns 3002 SGX_ERROR_INVALID_ATTRIBUTE:</p>
  
  <pre><code>printf("creating enclave 1\n");
      ret = sgx_create_enclave(ENCLAVE1_PATH, SGX_DEBUG_FLAG, &amp;launch_token, &amp;launch_token_updated, &amp;e1_enclave_id, NULL);
      if (ret != SGX_SUCCESS) {
          printf("Failed. Return value is: %X\n", ret);
                  return ret;
      }
  </code></pre>
  
  <p>This is the sample, right out of the linux SDK: <a href="https://github.com/intel/linux-sgx" rel="nofollow noreferrer">https://github.com/intel/linux-sgx</a> and this error isn't even mentioned as a possibility in Intel's documentation on the function: <a href="https://software.intel.com/en-us/sgx-sdk-dev-reference-sgx-create-enclave" rel="nofollow noreferrer">https://software.intel.com/en-us/sgx-sdk-dev-reference-sgx-create-enclave</a></p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>-- Henry</p>