-
Notifications
You must be signed in to change notification settings - Fork 2.9k
rootless: set C variables also on shortcut #4911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rootless: set C variables also on shortcut #4911
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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>
|
LGTM once things go green |
make sure the rootless env variables are set also when we are joining directly the user+mount namespace without creating a new process. It is required by pkg/unshare in containers/common. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
ecef477 to
ab7744d
Compare
|
/lgtm |
|
/test images |
2 similar comments
|
/test images |
|
/test images |
|
LGTM |
|
/test images |
make sure the rootless env variables are set also when we are joining
directly the user+mount namespace without creating a new process.
It is required by pkg/unshare in containers/common.
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com