summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-06-17 14:17:22 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-06-21 15:49:05 +0200
commit99258703a7c593c2717438928cd9c9052e50c26b (patch)
treec833bc179ed456ea5ae21be169c06d94ca680aeb
parentfe8e536328eef61f0cf7ffd42b74d4e5be4654ee (diff)
downloadpodman-99258703a7c593c2717438928cd9c9052e50c26b.tar.gz
podman-99258703a7c593c2717438928cd9c9052e50c26b.tar.bz2
podman-99258703a7c593c2717438928cd9c9052e50c26b.zip
rootless: do not ignore reexec_in_user_namespace_wait errors
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/rootless/rootless_linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c
index 94bd40f86..3a0d51533 100644
--- a/pkg/rootless/rootless_linux.c
+++ b/pkg/rootless/rootless_linux.c
@@ -512,7 +512,9 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
r = TEMP_FAILURE_RETRY (read (p[0], &b, 1));
close (p[0]);
- reexec_in_user_namespace_wait (pid, 0);
+ r = reexec_in_user_namespace_wait (pid, 0);
+ if (r != 0)
+ return -1;
return r == 1 && b == '0' ? 0 : -1;
}