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

rootless: force same cwd when re-execing #2393

Merged
merged 2 commits into from
Feb 23, 2019

Conversation

giuseppe
Copy link
Member

when joining an existing namespace, we were not maintaining the current working directory, causing commands like export -o to fail when they weren't referring to absolute paths.

Closes: #2381

Signed-off-by: Giuseppe Scrivano [email protected]

@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/M labels Feb 21, 2019
@vrothberg
Copy link
Member

LGTM, thanks for the great fix, @giuseppe!

I tested it locally and can confirm it's working now.

@vrothberg vrothberg added the needs-backport Indicates if changes in a PR should be backported to some releases. label Feb 21, 2019
@vrothberg
Copy link
Member

vrothberg commented Feb 21, 2019

@mheon, we created a new label needs-backport that may come in handy for maintaining the 1.0.X series.

Edit: it allows browsing (closed) PRs. Once the commits are backported, the label could be removed again.

@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably #2392) made this pull request unmergeable. Please resolve the merge conflicts.

@mheon
Copy link
Member

mheon commented Feb 21, 2019

@vrothberg With any luck, we will never do another 1.0.x release (it's getting painfully out of date) - and given the RHEL process, if we do, it should only be customer BZs, so this will almost certainly not make it. Any reason we really need this backported?

fprintf (stderr, "cannot chdir: %s\n", strerror (errno));
_exit (EXIT_FAILURE);
}
free (cwd);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, after fixing this up in fuse-overlay. Shouldn't this be cleaned up automatically.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could start using auto cleanups, although this doesn't really make any practical difference as we are going to exec

@vrothberg
Copy link
Member

@vrothberg With any luck, we will never do another 1.0.x release (it's getting painfully out of date) - and given the RHEL process, if we do, it should only be customer BZs, so this will almost certainly not make it. Any reason we really need this backported?

I don't think there's a specific reason unless a customer hits it :^)

@rhatdan
Copy link
Member

rhatdan commented Feb 21, 2019

I agree, we only back port fixes pointed out by customers. Hopefully everyone using podman and container-tools will ignore the slow moving train.

@rhatdan
Copy link
Member

rhatdan commented Feb 21, 2019

LGTM, other then the nit.

@mheon
Copy link
Member

mheon commented Feb 21, 2019

LGTM once tests go green

@giuseppe giuseppe force-pushed the reexec-into-same-wd branch from 0809a5c to c38ce06 Compare February 21, 2019 19:24
@rhatdan
Copy link
Member

rhatdan commented Feb 21, 2019

/retest

@giuseppe giuseppe force-pushed the reexec-into-same-wd branch 2 times, most recently from cff5439 to 02a40e7 Compare February 22, 2019 08:13
@giuseppe giuseppe force-pushed the reexec-into-same-wd branch 6 times, most recently from 13b1399 to 201225a Compare February 22, 2019 20:10
@giuseppe
Copy link
Member Author

/retest

@mheon
Copy link
Member

mheon commented Feb 22, 2019

@giuseppe You might be better off rebasing... CI is going a little crazy today

when joining an existing namespace, we were not maintaining the
current working directory, causing commands like export -o to fail
when they weren't referring to absolute paths.

Closes: containers#2381

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the reexec-into-same-wd branch from 201225a to 7e920e4 Compare February 22, 2019 22:55
@giuseppe
Copy link
Member Author

tests are green!

@rhatdan
Copy link
Member

rhatdan commented Feb 23, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2019
@openshift-merge-robot openshift-merge-robot merged commit 0969d72 into containers:master Feb 23, 2019
@giuseppe giuseppe deleted the reexec-into-same-wd branch February 26, 2019 10:31
@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 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 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. needs-backport Indicates if changes in a PR should be backported to some releases.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants