automation-tests/common/pkg/unshare
Giuseppe Scrivano 758b4e2730 unshare: add getenv from cgo
if CGO is enabled, make sure to use C.getenv instead of os.Getenv to
read environment variables.  It is required since rootless libpod
joins the user namespace through Cgo.

The variables set via C.setenv are not visible through os.Getenv, as
the latter uses sync.Once to read the variables once.

Requires: https://github.com/containers/libpod/pull/4911

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-20 15:53:55 +01:00
..
getenv_linux_cgo.go unshare: add getenv from cgo 2020-01-20 15:53:55 +01:00
getenv_linux_nocgo.go unshare: add getenv from cgo 2020-01-20 15:53:55 +01:00
unshare.c move pkg/unshare from buildah 2019-10-10 22:35:31 -04:00
unshare.go add libpod.conf to containers.conf 2019-12-06 15:55:47 -05:00
unshare_cgo.go move pkg/unshare from buildah 2019-10-10 22:35:31 -04:00
unshare_gccgo.go move pkg/unshare from buildah 2019-10-10 22:35:31 -04:00
unshare_linux.go unshare: add getenv from cgo 2020-01-20 15:53:55 +01:00
unshare_test.go move pkg/unshare from buildah 2019-10-10 22:35:31 -04:00
unshare_unsupported.go move pkg/unshare from buildah 2019-10-10 22:35:31 -04:00