summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_linux.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-06-17 11:14:06 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-06-21 15:50:52 +0200
commit9afd5e31c8e2d6a59868ec834cb1893c24a9c12b (patch)
tree62a0cd36b08323968d9b87a0af81e81cef9e827a /pkg/rootless/rootless_linux.go
parent99258703a7c593c2717438928cd9c9052e50c26b (diff)
downloadpodman-9afd5e31c8e2d6a59868ec834cb1893c24a9c12b.tar.gz
podman-9afd5e31c8e2d6a59868ec834cb1893c24a9c12b.tar.bz2
podman-9afd5e31c8e2d6a59868ec834cb1893c24a9c12b.zip
rootless: improve error messages
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_linux.go')
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 5af9a978b..cbc2bc1f5 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -182,7 +182,7 @@ func joinUserAndMountNS(pid uint, pausePid string) (bool, int, error) {
pidC := C.reexec_userns_join(C.int(pid), cPausePid)
if int(pidC) < 0 {
- return false, -1, errors.Errorf("cannot re-exec process")
+ return false, -1, errors.Errorf("cannot re-exec process to join the existing user namespace")
}
ret := C.reexec_in_user_namespace_wait(pidC, 0)