make managing namespaces more resilient against inconsitent states

This commit is contained in:
Robin Appelman 2026-02-13 23:22:45 +01:00
commit 9dd802050c
4 changed files with 49 additions and 15 deletions

View file

@ -101,7 +101,7 @@ struct State {
impl State {
pub fn new() -> Result<Self, DaemonError> {
let namespaces = NetNs::existing()?
let namespaces = NetNs::existing(false)?
.map(ActiveNamespace::new)
.collect::<Result<Vec<_>, _>>()?;
Ok(State { namespaces })