Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Corrected check for in-kernel driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Raynor <[email protected]>
  • Loading branch information
ScottR-Intel committed Jun 7, 2021
1 parent 293ed20 commit 8e6416b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ class SgxCpuChecker {
};

bool sgx_driver_loaded() {
// /dev/isgx is for LKM version, /dev/sgx is for in-kernel support.
return file_exists("/dev/isgx") || file_exists("/dev/sgx");
// /dev/isgx is for LKM version, /dev/sgx_enclave and /dev/sgx_provision are for in-kernel support.
return file_exists("/dev/isgx") || (file_exists("/dev/sgx_enclave") && file_exists("/dev/sgx_provision"));
}

bool psw_installed() {
Expand Down

0 comments on commit 8e6416b

Please sign in to comment.