Skip to content

Commit c2e7e6c

Browse files
committed
debug
1 parent ae61a44 commit c2e7e6c

File tree

1 file changed

+3
-1
lines changed
  • components/ws-daemon/nsinsider

1 file changed

+3
-1
lines changed

components/ws-daemon/nsinsider/main.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ func main() {
215215
Userns_fd: uint64(usernsFD.Fd()),
216216
})
217217
if err != nil {
218-
return xerrors.Errorf("mountsetattr: %w", err)
218+
mp, _ := os.ReadFile(filepath.Join(filepath.Dir(userns), "uid_map"))
219+
time.Sleep(2 * time.Second)
220+
return xerrors.Errorf("mountsetattr: %w (map: %s)", err, string(mp))
219221
}
220222

221223
err = unix.MoveMount(mappedFD, "", unix.AT_FDCWD, mappedLower, flagMoveMountFEmptyPath)

0 commit comments

Comments
 (0)