From c2e7e6c57c50a6910c141ff0906ff96bc0339984 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 20 Oct 2022 12:10:45 +0000 Subject: [PATCH] debug --- components/ws-daemon/nsinsider/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ws-daemon/nsinsider/main.go b/components/ws-daemon/nsinsider/main.go index 2aa8eb6c6101a3..ef4ea32699696a 100644 --- a/components/ws-daemon/nsinsider/main.go +++ b/components/ws-daemon/nsinsider/main.go @@ -215,7 +215,9 @@ func main() { Userns_fd: uint64(usernsFD.Fd()), }) if err != nil { - return xerrors.Errorf("mountsetattr: %w", err) + mp, _ := os.ReadFile(filepath.Join(filepath.Dir(userns), "uid_map")) + time.Sleep(2 * time.Second) + return xerrors.Errorf("mountsetattr: %w (map: %s)", err, string(mp)) } err = unix.MoveMount(mappedFD, "", unix.AT_FDCWD, mappedLower, flagMoveMountFEmptyPath)