cleanup namespace creation

This commit is contained in:
Robin Appelman 2025-10-31 16:24:16 +01:00
commit ac98bcbc00
5 changed files with 189 additions and 134 deletions

View file

@ -148,7 +148,7 @@ struct ActiveNamespace {
impl ActiveNamespace {
pub fn new(config: &NamespaceConfig) -> Result<Self, DaemonError> {
let ns = NetNs::new(&config.name)?;
let ns = NetNs::new(config.name.clone())?;
let mut namespace = ActiveNamespace {
ns,