@@ -16,7 +16,7 @@ compile_error!(
1616) ;
1717
1818mod activity_aggregator;
19- mod backend_setup;
19+ pub mod backend_setup;
2020mod denial_aggregator;
2121mod endpoint_status;
2222mod mechanistic_mapper;
@@ -667,33 +667,34 @@ pub async fn run_sandbox(
667667 . await
668668}
669669
670- struct SandboxRunConfig {
671- command : Vec < String > ,
672- workdir : Option < String > ,
673- timeout_secs : u64 ,
674- interactive : bool ,
675- await_main_process_attachment : bool ,
676- sandbox_id : Option < String > ,
677- sandbox : Option < String > ,
678- openshell_endpoint : Option < String > ,
679- policy_rules : Option < String > ,
680- policy_data : Option < String > ,
681- ssh_socket_path : Option < String > ,
682- health_socket_path : Option < std:: path:: PathBuf > ,
683- health_port : Option < u16 > ,
684- ocsf_enabled : Arc < AtomicBool > ,
685- ocsf_schema_version : Arc < std:: sync:: Mutex < String > > ,
686- upstream_proxy_args : openshell_supervisor_network:: upstream_proxy:: UpstreamProxyArgs ,
687- backend_descriptor : openshell_isolation_interface:: contract:: BackendDescriptor ,
688- auth_bundle : openshell_core:: jwt:: SupervisorAuthBundle ,
689- admitted_isolation_backend : Option < String > ,
690- main_exit_marker : Option < std:: path:: PathBuf > ,
670+ /// Trusted inputs for one supervisor launch.
671+ pub struct SandboxRunConfig {
672+ pub command : Vec < String > ,
673+ pub workdir : Option < String > ,
674+ pub timeout_secs : u64 ,
675+ pub interactive : bool ,
676+ pub await_main_process_attachment : bool ,
677+ pub sandbox_id : Option < String > ,
678+ pub sandbox : Option < String > ,
679+ pub openshell_endpoint : Option < String > ,
680+ pub policy_rules : Option < String > ,
681+ pub policy_data : Option < String > ,
682+ pub ssh_socket_path : Option < String > ,
683+ pub health_socket_path : Option < std:: path:: PathBuf > ,
684+ pub health_port : Option < u16 > ,
685+ pub ocsf_enabled : Arc < AtomicBool > ,
686+ pub ocsf_schema_version : Arc < std:: sync:: Mutex < String > > ,
687+ pub upstream_proxy_args : openshell_supervisor_network:: upstream_proxy:: UpstreamProxyArgs ,
688+ pub backend_descriptor : openshell_isolation_interface:: contract:: BackendDescriptor ,
689+ pub auth_bundle : openshell_core:: jwt:: SupervisorAuthBundle ,
690+ pub admitted_isolation_backend : Option < String > ,
691+ pub main_exit_marker : Option < std:: path:: PathBuf > ,
691692}
692693
693694/// Trusted composition chooses the setup before shared admission, policy, and
694695/// lifecycle handling. Payload contents never select a backend implementation.
695696#[ allow( clippy:: similar_names) ]
696- async fn run_sandbox_with_backend (
697+ pub async fn run_sandbox_with_backend (
697698 backend_setup : & dyn backend_setup:: BackendSetup ,
698699 config : SandboxRunConfig ,
699700) -> Result < i32 > {
@@ -2141,7 +2142,7 @@ enum LocalPolicyIdentity {
21412142/// init maps the `sandbox` account to this pair; the host must not resolve
21422143/// guest selectors through its own account database.
21432144#[ derive( Clone , Copy ) ]
2144- struct VmPolicyIdentity {
2145+ pub struct VmPolicyIdentity {
21452146 uid : u32 ,
21462147 gid : u32 ,
21472148}
0 commit comments