MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / inject_guest_sandbox_token

Function inject_guest_sandbox_token

crates/openshell-driver-vm/src/driver.rs:4671–4675  ·  view source on GitHub ↗
(overlay_disk: &Path, token: &str)

Source from the content-addressed store, hash-verified

4669}
4670
4671fn inject_guest_sandbox_token(overlay_disk: &Path, token: &str) -> Result<(), String> {
4672 let token_path = overlay_upper_path(GUEST_SANDBOX_TOKEN_PATH);
4673 write_rootfs_image_file(overlay_disk, &token_path, format!("{token}\n").as_bytes())?;
4674 set_rootfs_image_file_mode(overlay_disk, &token_path, 0o600)
4675}
4676
4677#[allow(clippy::result_large_err)]
4678fn inject_guest_init_dropins(

Calls 3

overlay_upper_pathFunction · 0.85
write_rootfs_image_fileFunction · 0.85

Tested by

no test coverage detected