Skip to content
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

rootful: unset XDG_RUNTIME_DIR #11195

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Aug 11, 2021

Depending how the user logs in to the root account, XDG_RUNTIME_DIR is
set to /run/user/0 or it is unset. For conmon we already set it always
to an empty string. The inconsistency is causing issues for the dnsname
plugin. To fix it also set XDG_RUNTIME_DIR to an empty string for the
podman process.

Fixes #10806
Fixes #10745

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2021
@Luap99
Copy link
Member Author

Luap99 commented Aug 11, 2021

Let's see if this breaks anything.

@Luap99
Copy link
Member Author

Luap99 commented Aug 11, 2021

dnsname fix: containers/dnsname#73

@rhatdan
Copy link
Member

rhatdan commented Aug 11, 2021

LGTM

@mheon
Copy link
Member

mheon commented Aug 11, 2021

LGTM, but I vote we don't backport this to 3.3 and leave it to the 4.0 release in case this does break something

@Luap99
Copy link
Member Author

Luap99 commented Aug 11, 2021

Yeah I am fine with not backporting, but we should get a new dnsname version into 3.3 to fix the linked issues.

@rhatdan
Copy link
Member

rhatdan commented Aug 11, 2021

Agree with don't back port, although I think we will have a podman 3.4 release. before we ship podman 4.0.

@TomSweeneyRedHat
Copy link
Member

LGTM once @edsantiago 's comment is addressed

Depending how the user logs in to the root account, XDG_RUNTIME_DIR is
set to /run/user/0 or it is unset. For conmon we already set it always
to an empty string. The inconsistency is causing issues for the dnsname
plugin. To fix it unset XDG_RUNTIME_DIR for the podman process.

[NO TESTS NEEDED]

Fixes containers#10806
Fixes containers#10745

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 Luap99 changed the title rootful: set XDG_RUNTIME_DIR to empty string rootful: unset XDG_RUNTIME_DIR Aug 16, 2021
@rhatdan
Copy link
Member

rhatdan commented Aug 16, 2021

Verified that os.Unsetenv("foobar") does not return an error.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2021
@openshift-ci openshift-ci bot merged commit 41fb06a into containers:main Aug 16, 2021
@Luap99 Luap99 deleted the xdg-root branch August 16, 2021 12:51
@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 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
5 participants