Skip to content

Conversation

@giuseppe
Copy link
Member

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: containers/podman#4911

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

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: containers/podman#4911

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Jan 21, 2020

LGTM

@rhatdan rhatdan merged commit ce904e3 into containers:master Jan 21, 2020
M1cha pushed a commit to M1cha/common that referenced this pull request Dec 20, 2022
Set sysctl net.ipv4.ip_forwarding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants