Skip to content

Commit

Permalink
sysroot: Do not trust mount_namespace_in_use as it's per-thread
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Dec 18, 2024
1 parent 04652cf commit 160bf13
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libostree/ostree-sysroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 160bf13

Please sign in to comment.