Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan Heywood 01f595657d
assume nsm.ko is embedded in kernel 2025-07-11 19:03:06 -04:00
Ryan Heywood 9ab33ecadc
disable broken mounts, for now 2025-07-11 19:02:50 -04:00
2 changed files with 6 additions and 4 deletions

View File

@ -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));
/*

View File

@ -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() {