Skip to content

Conversation

@giuseppe
Copy link
Member

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

@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS labels Jan 20, 2020
giuseppe added a commit to giuseppe/common that referenced this pull request Jan 20, 2020
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>
@mheon
Copy link
Member

mheon commented Jan 20, 2020

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>
@giuseppe giuseppe force-pushed the rootless-set-containers-env branch from ecef477 to ab7744d Compare January 20, 2020 15:43
@rhatdan
Copy link
Member

rhatdan commented Jan 20, 2020

/lgtm
Not sure what is going wrong with images?

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2020
@rhatdan
Copy link
Member

rhatdan commented Jan 20, 2020

/test images

2 similar comments
@rhatdan
Copy link
Member

rhatdan commented Jan 21, 2020

/test images

@giuseppe
Copy link
Member Author

/test images

@TomSweeneyRedHat
Copy link
Member

LGTM

@giuseppe
Copy link
Member Author

/test images

@openshift-merge-robot openshift-merge-robot merged commit 55abb6d into containers:master Jan 22, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants