Skip to content

Commit 6535a00

Browse files
author
Yu Ding
committed
v0.9.7 release. Provides sgx_tstd::untrusted
1 parent 06936bc commit 6535a00

File tree

91 files changed

+418
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+418
-96
lines changed

Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Rust SGX SDK
22
Rust SGX SDK helps developers write Intel SGX applications in Rust programming language. [[Paper pdf]](documents/ccsp17.pdf)
33

4+
## v0.9.7 Release
5+
This version provides a new namespace: `sgx_tstd::untrusted`, including `sgx_tstd::untrusted::fs` `sgx_tstd::untrusted::time` and `sgx_tstd::untrusted::path`, providing supports to operation to ocalls in a **untrusted** namespace. The **untrusted** namespace is always enabled no matter `untrusted_*` is set or not. We **urge** the developers to use the `sgx_tstd::untrusted` namespace to port their crates, instead of enabling the `untrusted_` series of features. Also, we renamed the `untrusted_net` feature to `net` for feature name unification. Please refer to [release_notes](release_notes.md) for further details.
6+
47
## v0.9.6 Release
58
This version provides security enhancement for untrusted IO and additional support for monotonic counter. Untrusted IO operations in `sgx_tstd::fs` `sgx_tstd::net` and `sgx_tstd::time` are **DISABLED by default** to reduce the untrusted surface, and can be enabled by features. Trusted time support is moved to `sgx_tservice::sgxtime` and monotonic counter is provided by `sgx_tservice::sgxcounter`. Please refer to [release_notes](release_notes.md) for further details.
69

release_notes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Rust SGX SDK v0.9.7 Release Notes
2+
**Provide `sgx_tstd::untrusted` namespace** v0.9.7 provides `sgx_tstd::untrusted::{fs,path,time}` which related to ocall functions. They are always enabled no matter `untrusted_fs` or `untrusted_time` feature is enabled or not. The major concern of providing such a namespace is that we want the developer to know they are invoking ocall related functions which brings **untrusted data** into the trusted execution engine. For the best security practice, explicitly importing from `sgx_tstd::untrusted` is better than enabling feature in `Cargo.toml`. We stress that `untrusted_fs` and `untrusted_time` features are designed to be **contingency plans** and should only be enabled when porting an very complex Rust crate to Rust-SGX enclaves.
3+
4+
**Rename feature `untrusted_net` to `net`** `net` is well-known as untrusted and we think `net` is a better choice and similar to current features: `backtrace` and `stdio`.
5+
16
# Rust SGX SDK v0.9.6 Release Notes
27
**Support latest Rust nightly build (nightly-2018-02-05-x86_64-unknown-linux-gnu)**
38

samplecode/backtrace/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Backtracesampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/crypto/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Cryptosampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/file/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Filesampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/hello-rust/app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "app"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["duanran01 <duanran01@baidu.com>"]
55
build = "build.rs"
66

samplecode/hello-rust/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Helloworldsampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/helloworld/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Helloworldsampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/hugemem/enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Hugememsampleenclave"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[lib]

samplecode/localattestation/attestation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "attestation"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
authors = ["Baidu"]
55

66
[features]

0 commit comments

Comments
 (0)