From 160bf134db9b9c3a129e1ce5a522e052b2af128e Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Thu, 19 Dec 2024 03:02:27 +0800 Subject: [PATCH] sysroot: Do not trust mount_namespace_in_use as it's per-thread --- src/libostree/ostree-sysroot.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 6380fa5372..04184a073f 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -278,10 +278,6 @@ gboolean _ostree_sysroot_enter_mount_namespace (OstreeSysroot *self, GCancellable *cancellable, GError **error) { - /* Do nothing if we're already in mount namespace */ - if (self->mount_namespace_in_use) - return TRUE; - /* Do nothing if we're not privileged */ if (!ot_util_process_privileged ()) return TRUE;