Skip to content

Commit f07e3c7

Browse files
committed
fix(sandbox): resolve rebase regressions
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 2fe70f8 commit f07e3c7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎crates/openshell-sandbox/src/lib.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ mod sidecar_control;
2727
use miette::{IntoDiagnostic, Result, WrapErr};
2828
use std::collections::{BTreeMap, BTreeSet, HashSet};
2929
use std::future::Future;
30+
use std::path::PathBuf;
3031
use std::pin::Pin;
3132
use std::sync::Arc;
3233
#[cfg(target_os = "linux")]
@@ -630,7 +631,7 @@ pub async fn run_sandbox(
630631
retained_proto: retained_proto.clone(),
631632
openshell_endpoint: openshell_endpoint.clone(),
632633
sandbox_id: sandbox_id.clone(),
633-
trusted_ssh_socket_path: std::path::PathBuf::from(trusted_ssh_socket_path),
634+
trusted_ssh_socket_path: PathBuf::from(trusted_ssh_socket_path),
634635
control_publisher: sidecar_control_publisher.clone(),
635636
},
636637
);
@@ -1328,7 +1329,7 @@ struct SidecarEntrypointHandler {
13281329
retained_proto: Option<openshell_core::proto::SandboxPolicy>,
13291330
openshell_endpoint: Option<String>,
13301331
sandbox_id: Option<String>,
1331-
trusted_ssh_socket_path: std::path::PathBuf,
1332+
trusted_ssh_socket_path: PathBuf,
13321333
control_publisher: Option<sidecar_control::Publisher>,
13331334
}
13341335

‎crates/openshell-supervisor-process/src/process.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,6 +2469,7 @@ mod tests {
24692469
let policy = policy_with_process(ProcessPolicy {
24702470
run_as_user: Some(current_user.name.clone()),
24712471
run_as_group: None,
2472+
..Default::default()
24722473
});
24732474
let workspace = ResolvedWorkspace::default();
24742475
let mut cmd = Command::new("/usr/bin/env");

0 commit comments

Comments
 (0)