Decouple client contracts and close private role registries
This commit is contained in:
parent
786049534d
commit
22325aa76a
1 changed files with 1041 additions and 321 deletions
|
|
@ -20,8 +20,7 @@ use lazaret_core::records::{
|
|||
};
|
||||
use lazaret_linux::filesystem::{atomic_replace, require_write_sealed, sealed_memfd};
|
||||
use lazaret_linux::process::{
|
||||
ProcessOwnershipContext, TargetCommand, child_broker, current_process_identity,
|
||||
dispatch_private_process_role, recover_process,
|
||||
ProcessOwnershipContext, TargetCommand, child_broker, current_process_identity, recover_process,
|
||||
};
|
||||
use lazaret_runtime_supervisor::network::{
|
||||
DnsProbeTarget, NetworkAttestationContext, NetworkProbeRequest, TcpProbeTarget,
|
||||
|
|
@ -35,8 +34,9 @@ const SKIP: u8 = 77;
|
|||
|
||||
fn main() -> ExitCode {
|
||||
let arguments = std::env::args_os().skip(1).collect::<Vec<_>>();
|
||||
if let Some(result) = dispatch_private_process_role(&arguments) {
|
||||
return exit(result);
|
||||
if let Some(outcome) = lazaret_runtime_supervisor::private_roles::REGISTRY.dispatch(&arguments)
|
||||
{
|
||||
return exit(outcome.result);
|
||||
}
|
||||
if arguments.first().and_then(|value| value.to_str()) == Some(CHILD_ROLE) {
|
||||
return exit(run_child(&arguments[1..]));
|
||||
|
|
|
|||
Loading…
Reference in a new issue