Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed Oct 20, 2022
1 parent ae61a44 commit c2e7e6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ws-daemon/nsinsider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2e7e6c

Please sign in to comment.