podman/pkg/rootless
Giuseppe Scrivano 7046e78040
rootless: report correctly the error
`err` is nil at this point, so errors.Wrapf() would return nil
ignoring the remaining arguments.  This would prevent SetupRootless()
to fail causing podman to run without capabilities but believing so,
and it would end up in a crash when accessing the local store.

Closes: https://github.com/containers/podman/discussions/12923

[NO NEW TESTS NEEDED] it requires running in the environment created
by bazel linux-sandbox.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-01-19 21:14:33 +01:00
..
rootless.go rootless: improve automatic range split 2021-05-05 18:03:10 +02:00
rootless_linux.c podman image scp never enter podman user NS 2021-12-23 10:10:51 -05:00
rootless_linux.go rootless: report correctly the error 2022-01-19 21:14:33 +01:00
rootless_test.go rootless: improve automatic range split 2021-05-05 18:03:10 +02:00
rootless_unsupported.go validate fds --preserve-fds 2020-08-04 15:09:17 -04:00