• Home
  • Raw
  • Download

Lines Matching refs:map_err

270     let mut j = Minijail::new().map_err(Error::CreateJail)?;  in create_plugin_jail()
274 .map_err(Error::SetUidMap)?; in create_plugin_jail()
276 .map_err(Error::SetGidMap)?; in create_plugin_jail()
282 j.enter_pivot_root(root).map_err(Error::ParsePivotRoot)?; in create_plugin_jail()
296 .map_err(Error::ParseSeccomp)?; in create_plugin_jail()
306 .map_err(Error::ParseSeccomp)?; in create_plugin_jail()
321 .map_err(Error::MountRoot)?; in create_plugin_jail()
331 .map_err(Error::MountProc)?; in create_plugin_jail()
444 let vcpu_exit_evt = exit_evt.try_clone().map_err(Error::CloneEvent)?; in run_vcpus()
446 let vcpu = Vcpu::new(cpu_id as c_ulong, kvm, vm).map_err(Error::CreateVcpu)?; in run_vcpus()
585 .map_err(Error::SpawnVcpu)?, in run_vcpus()
608 let sigchld_fd = SignalFd::new(SIGCHLD).map_err(Error::CreateSignalFd)?; in run_config()
640 jail.gidmap(&map).map_err(Error::SetGidMap)?; in run_config()
649 .map_err(Error::MountDev)?; in run_config()
654 .map_err(Error::Mount)?; in run_config()
666 let tap = Tap::new(false, false).map_err(Error::TapOpen)?; in run_config()
667 tap.set_ip_addr(host_ip).map_err(Error::TapSetIp)?; in run_config()
668 tap.set_netmask(netmask).map_err(Error::TapSetNetmask)?; in run_config()
670 .map_err(Error::TapSetMacAddress)?; in run_config()
672 tap.enable().map_err(Error::TapEnable)?; in run_config()
680 Tap::from_raw_descriptor(validate_raw_descriptor(tap_fd).map_err(Error::ValidateTapFd)?) in run_config()
681 .map_err(Error::CreateTapFd)? in run_config()
699 let kvm = Kvm::new_with_path(&cfg.kvm_device_path).map_err(Error::CreateKvm)?; in run_config()
700 let mut vm = Vm::new(&kvm, mem).map_err(Error::CreateVm)?; in run_config()
701 vm.create_irq_chip().map_err(Error::CreateIrqChip)?; in run_config()
702 vm.create_pit().map_err(Error::CreatePIT)?; in run_config()
707 drop_capabilities().map_err(Error::DropCapabilities)?; in run_config()
714 let exit_evt = Event::new().map_err(Error::CreateEvent)?; in run_config()
720 .map_err(Error::WaitContextAdd)?; in run_config()
741 .map_err(Error::WaitContextAdd)?; in run_config()
770 res = sig_res.map_err(Error::PluginKill); in run_config()
810 res = sig_res.map_err(Error::PluginKill); in run_config()
868 plugin.signal_kill().map_err(Error::PluginKill)?; in run_config()