Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Error Intel SGX on Linux

João_R_
Novice
546 Views

Hi. I'm trying to install mei for Linux: https://software.intel.com/en-us/file/37961-mei-712025zip

But when I try to make "make" I got: 

 

: error: expected ‘,’ or ‘;’ before ‘__MODULE_STRING’
      __MODULE_STRING(AMT_WD_VALUE)
      ^

And also:

error: implicit declaration of function ‘mdelay’ [-Werror=implicit-function-declaration]
    mdelay(10); /* Wait for hardware disconnection ready */

 

I'm trying to install this because in the Intel-SGX: https://github.com/01org/linux-sgx , there are an example of SealedData that gives me the error:     

Replay Protected DRM operation:
cannot get platform service capability, error code = 0x4001
Initialization the DRM failed.

Any help with this? Thank's in advance!

 

 

0 Kudos
1 Solution
João_R_
Novice
546 Views

I solved the problem, to acomplish that when I enabled MEI and install other required software (JHI, etc.) after PSW installed, then I needed to re-install PSW to trigger the initialization process.

Further information can be found in https://github.com/01org/linux-sgx/issues/93

Thanks for the help

View solution in original post

6 Replies
Shivananda_H_Intel
546 Views

Hi

Similar issue was handled earlier .Please check below link:

https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/614715

-Shivananda

João_R_
Novice
546 Views

But how can I install MEI? It is giving me error with implicit declaration of function mdelay

I also tryed ME but also with erros.

João_R_
Novice
546 Views

Also when I run the simulation mode I also get an error:

./app 

	Replay Protected DRM operation:
Successfully initialized the DRM.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
Successfully deleted the DRM secret.

	Replay Protected DRM update limitation:
Successfully initialized the DRM.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
Successfully updated the DRM secret.
Successfully performed the DRM functions.
cannot update_sealed_policy, function return fail, error code =0xf003
	Expected failure.
	The DRM secret update limitation reached.

	Replay Protected DRM replay attack protection:
Successfully initialized the DRM.
Successfully updated the DRM functions.
cannot perform_sealed_policy, function return fail, error code =0xf002
	Expected failure.
	Replay attack to DRM functions is caught.
Successfully performed the DRM functions .
Successfully deleted the DRM secret.

	Time based policy operation:
Successfully initialized the time based policy.
Successfully performed the time based policy functions.

	Time based policy expiration:
Successfully initialized the time based policy.
cannot perform_time_based_policy, function return fail, error code = 0xf006
	Expected failure.
	Time based policy has expired.
Enter a character before exit ...
gaston-hillar
Black Belt
546 Views

João R.,

Which specific Linux are you working with?

 

João_R_
Novice
547 Views

I solved the problem, to acomplish that when I enabled MEI and install other required software (JHI, etc.) after PSW installed, then I needed to re-install PSW to trigger the initialization process.

Further information can be found in https://github.com/01org/linux-sgx/issues/93

Thanks for the help

gaston-hillar
Black Belt
546 Views

Joao,

Thanks for sharing the solution to the problem. It is extremely useful to share the solution because others will benefit from reading the question and your own solution. :)

 

Reply