Skip to content

Commit

Permalink
sysroot: Fix _ostree_sysroot_ensure_visible ns
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Dec 18, 2024
1 parent 160bf13 commit e0eb4df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libostree/ostree-sysroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ _ostree_sysroot_ensure_visible (OstreeSysroot *self, GError **error)
if (sysroot_ns_fd < 0)
return FALSE;

glnx_autofd int cur_ns_fd = open("/proc/self/ns/mnt", O_RDONLY);
g_autofree char *cur_ns = g_strdup_printf ("/proc/%d/ns/mnt", gettid ());
glnx_autofd int cur_ns_fd = open(cur_ns, O_RDONLY);
if (cur_ns_fd < 0)
return FALSE;

Expand Down

0 comments on commit e0eb4df

Please sign in to comment.