Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename oak_restricted_kernel_api to oak_restricted_kernel_sdk #4533

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ members = [
"oak_launcher_utils",
"oak_remote_attestation",
"oak_restricted_kernel",
"oak_restricted_kernel_api",
"oak_restricted_kernel_interface",
"oak_restricted_kernel_sdk",
"oak_sev_guest",
"oak_simple_io",
"oak_tdx_guest",
Expand Down Expand Up @@ -98,7 +98,7 @@ oak_launcher_utils = { path = "./oak_launcher_utils" }
oak_linux_boot_params = { path = "./linux_boot_params" }
oak_logger = { path = "./oak_functions/logger" }
oak_remote_attestation = { path = "./oak_remote_attestation" }
oak_restricted_kernel_api = { path = "./oak_restricted_kernel_api" }
oak_restricted_kernel_sdk = { path = "./oak_restricted_kernel_sdk" }
oak_restricted_kernel_interface = { path = "./oak_restricted_kernel_interface" }
oak_sev_guest = { path = "./oak_sev_guest", default-features = false }
oak_simple_io = { path = "./oak_simple_io" }
Expand Down
2 changes: 1 addition & 1 deletion FORCE_CI
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
23
12 changes: 6 additions & 6 deletions enclave_apps/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion enclave_apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ micro_rpc = { path = "../micro_rpc" }
oak_enclave_runtime_support = { path = "../oak_enclave_runtime_support" }
oak_channel = { path = "../oak_channel" }
oak_core = { path = "../oak_core" }
oak_restricted_kernel_api = { path = "../oak_restricted_kernel_api" }
oak_restricted_kernel_sdk = { path = "../oak_restricted_kernel_sdk" }
oak_restricted_kernel_interface = { path = "../oak_restricted_kernel_interface" }
oak_remote_attestation = { path = "../oak_remote_attestation" }
2 changes: 1 addition & 1 deletion enclave_apps/key_xor_test_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ log = "*"
micro_rpc = { workspace = true }
oak_enclave_runtime_support = { workspace = true }
oak_channel = { workspace = true }
oak_restricted_kernel_api = { workspace = true }
oak_restricted_kernel_sdk = { workspace = true }
oak_restricted_kernel_interface = { workspace = true }
static_assertions = "*"

Expand Down
4 changes: 2 additions & 2 deletions enclave_apps/key_xor_test_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ extern crate alloc;
use core::panic::PanicInfo;
use log::info;
use oak_channel::{Read, Write};
use oak_restricted_kernel_api::{syscall::read, FileDescriptorChannel, StderrLogger};
use oak_restricted_kernel_interface::DERIVED_KEY_FD;
use oak_restricted_kernel_sdk::{syscall::read, FileDescriptorChannel, StderrLogger};

static LOGGER: StderrLogger = StderrLogger {};

Expand Down Expand Up @@ -66,5 +66,5 @@ fn out_of_memory(layout: ::core::alloc::Layout) -> ! {
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
log::error!("PANIC: {}", info);
oak_restricted_kernel_api::syscall::exit(-1);
oak_restricted_kernel_sdk::syscall::exit(-1);
}
2 changes: 1 addition & 1 deletion enclave_apps/oak_echo_enclave_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ micro_rpc = { workspace = true }
oak_enclave_runtime_support = { workspace = true }
oak_channel = { workspace = true }
oak_core = { workspace = true }
oak_restricted_kernel_api = { workspace = true }
oak_restricted_kernel_sdk = { workspace = true }
static_assertions = "*"

[[bin]]
Expand Down
4 changes: 2 additions & 2 deletions enclave_apps/oak_echo_enclave_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use alloc::boxed::Box;
use core::panic::PanicInfo;
use log::info;
use oak_core::samplestore::StaticSampleStore;
use oak_restricted_kernel_api::{FileDescriptorChannel, StderrLogger};
use oak_restricted_kernel_sdk::{FileDescriptorChannel, StderrLogger};

static LOGGER: StderrLogger = StderrLogger {};

Expand Down Expand Up @@ -63,5 +63,5 @@ fn out_of_memory(layout: ::core::alloc::Layout) -> ! {
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
log::error!("PANIC: {}", info);
oak_restricted_kernel_api::syscall::exit(-1);
oak_restricted_kernel_sdk::syscall::exit(-1);
}
2 changes: 1 addition & 1 deletion enclave_apps/oak_echo_raw_enclave_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ log = "*"
micro_rpc = { workspace = true }
oak_enclave_runtime_support = { workspace = true }
oak_channel = { workspace = true }
oak_restricted_kernel_api = { workspace = true }
oak_restricted_kernel_sdk = { workspace = true }
static_assertions = "*"

[[bin]]
Expand Down
4 changes: 2 additions & 2 deletions enclave_apps/oak_echo_raw_enclave_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use alloc::{vec, vec::Vec};
use core::panic::PanicInfo;
use log::info;
use oak_channel::{Read, Write};
use oak_restricted_kernel_api::{FileDescriptorChannel, StderrLogger};
use oak_restricted_kernel_sdk::{FileDescriptorChannel, StderrLogger};

const MESSAGE_SIZE: usize = 1;

Expand Down Expand Up @@ -65,5 +65,5 @@ fn out_of_memory(layout: ::core::alloc::Layout) -> ! {
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
log::error!("PANIC: {}", info);
oak_restricted_kernel_api::syscall::exit(-1);
oak_restricted_kernel_sdk::syscall::exit(-1);
}
2 changes: 1 addition & 1 deletion enclave_apps/oak_functions_enclave_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ oak_enclave_runtime_support = { workspace = true }
oak_core = { workspace = true }
oak_channel = { workspace = true }
oak_remote_attestation = { workspace = true }
oak_restricted_kernel_api = { workspace = true }
oak_restricted_kernel_sdk = { workspace = true }
static_assertions = "*"

[[bin]]
Expand Down
6 changes: 3 additions & 3 deletions enclave_apps/oak_functions_enclave_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use alloc::{boxed::Box, sync::Arc};
use core::panic::PanicInfo;
use log::info;
use oak_core::samplestore::StaticSampleStore;
use oak_restricted_kernel_api::{FileDescriptorChannel, StderrLogger};
use oak_restricted_kernel_sdk::{FileDescriptorChannel, StderrLogger};

static LOGGER: StderrLogger = StderrLogger {};

Expand All @@ -45,7 +45,7 @@ fn main() -> ! {
log::set_max_level(log::LevelFilter::Warn);
}
let mut invocation_stats = StaticSampleStore::<1000>::new().unwrap();
let dice_data = oak_restricted_kernel_api::dice::get_dice_evidence_and_keys()
let dice_data = oak_restricted_kernel_sdk::dice::get_dice_evidence_and_keys()
.expect("couldn't get DICE data");
let service = oak_functions_service::OakFunctionsService::new(
dice_data.evidence,
Expand All @@ -68,5 +68,5 @@ fn out_of_memory(layout: ::core::alloc::Layout) -> ! {
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
log::error!("PANIC: {}", info);
oak_restricted_kernel_api::syscall::exit(-1);
oak_restricted_kernel_sdk::syscall::exit(-1);
}
2 changes: 1 addition & 1 deletion oak_enclave_runtime_support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ license = "Apache-2.0"
libm = "*"
rlsf = "*"
log = "*"
oak_restricted_kernel_api = { workspace = true }
oak_restricted_kernel_sdk = { workspace = true }
oak_restricted_kernel_interface = { workspace = true }
spinning_top = "*"
2 changes: 1 addition & 1 deletion oak_enclave_runtime_support/src/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ unsafe impl FlexSource for Source {
min_size
};

oak_restricted_kernel_api::syscall::mmap(
oak_restricted_kernel_sdk::syscall::mmap(
// TODO(#3864): One we start compiling C++ applications internally using the Oak
// Toolchain, we won't need to manually separate Rust and C++ heaps.
Some(0x100_0000_0000 as *const core::ffi::c_void),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "oak_restricted_kernel_api"
name = "oak_restricted_kernel_sdk"
version = "0.1.0"
authors = ["Andri Saar <[email protected]>"]
edition = "2021"
Expand Down