This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
The following commit(s) were added to refs/heads/master by this push:
new 11ea7fa Detect the intel_sgx kernel module (#383)
11ea7fa is described below
commit 11ea7fad78975db3218f415d57a3cd477418f8ea
Author: Mingshen Sun <[email protected]>
AuthorDate: Sun Jul 5 16:48:57 2020 -0700
Detect the intel_sgx kernel module (#383)
---
tool/app/src/main.rs | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/tool/app/src/main.rs b/tool/app/src/main.rs
index 8b20963..cad1d0c 100644
--- a/tool/app/src/main.rs
+++ b/tool/app/src/main.rs
@@ -173,21 +173,15 @@ fn status() {
std::path::Path::new("/var/run/aesmd/aesm.socket").exists()
);
- println!("\nKernel module (isgx):");
- if process::Command::new("modinfo")
- .arg("isgx")
- .status()
- .is_err()
- {
- println!("failed to execute modinfo isgx");
- }
- println!("\nKernel module (sgx):");
- if process::Command::new("modinfo")
- .arg("sgx")
- .status()
- .is_err()
- {
- println!("failed to execute modinfo sgx");
+ for module in &["isgx", "sgx", "intel_sgx"] {
+ println!("\nKernel module ({}):", module);
+ if process::Command::new("modinfo")
+ .arg(module)
+ .status()
+ .is_err()
+ {
+ println!("failed to execute modinfo {}", module);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]