Compare commits
2 Commits
46b1ab1dd8
...
01f595657d
Author | SHA1 | Date |
---|---|---|
|
01f595657d | |
|
9ab33ecadc |
|
@ -30,9 +30,10 @@ fn init_rootfs() {
|
|||
let no_se = MS_NOSUID | MS_NOEXEC;
|
||||
let args = [
|
||||
("devtmpfs", "/dev", "devtmpfs", no_se, "mode=0755"),
|
||||
("devtmpfs", "/dev", "devtmpfs", no_se, "mode=0755"),
|
||||
/*
|
||||
("devpts", "/dev/pts", "devpts", no_se, ""),
|
||||
("shm", "/dev/shm", "tmpfs", no_dse, "mode=0755"),
|
||||
*/
|
||||
("proc", "/proc", "proc", no_dse, "hidepid=2"),
|
||||
("tmpfs", "/run", "tmpfs", no_dse, "mode=0755"),
|
||||
("tmpfs", "/tmp", "tmpfs", no_dse, ""),
|
||||
|
@ -59,9 +60,10 @@ fn init() -> Result<()> {
|
|||
|
||||
init_rootfs();
|
||||
|
||||
platform::aws::Aws.init().unwrap();
|
||||
|
||||
init_console()?;
|
||||
|
||||
platform::aws::Aws.init().unwrap();
|
||||
std::thread::sleep(std::time::Duration::from_secs(500));
|
||||
|
||||
/*
|
||||
|
|
|
@ -112,8 +112,8 @@ mod enclaveos_shim {
|
|||
// TODO: error handling
|
||||
nitro_heartbeat();
|
||||
|
||||
eprintln!("Loading nsm.ko");
|
||||
insmod("/nsm.ko");
|
||||
// eprintln!("Loading nsm.ko");
|
||||
// insmod("/nsm.ko");
|
||||
}
|
||||
|
||||
fn nitro_heartbeat() {
|
||||
|
|
Loading…
Reference in New Issue