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: new function to join existing conmon processes #3188

Merged

Conversation

giuseppe
Copy link
Member

move the logic for joining existing namespaces down to the rootless package. In main_local we still retrieve the list of conmon pid files and use it from the rootless package.

In addition, create a temporary user namespace for reading these files, as the unprivileged user might not have enough privileges for reading the conmon pid file, for example when running with a different uidmap and root in the container is different than the rootless user.

Closes: #3187

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/L labels May 23, 2019
@giuseppe giuseppe force-pushed the fix-join-existing-containers branch 6 times, most recently from f3a6b8f to 94cb4df Compare May 23, 2019 18:27
@jistr
Copy link

jistr commented May 23, 2019

Tested 6bca80bdfebf9d390ce1a9786ae6101c87f1322d for now, WFM, thanks!

@giuseppe
Copy link
Member Author

@jistr thanks for confirming it!

@rhatdan
Copy link
Member

rhatdan commented May 23, 2019

LGTM

1 similar comment
@rhatdan
Copy link
Member

rhatdan commented May 23, 2019

LGTM

@giuseppe giuseppe force-pushed the fix-join-existing-containers branch from 94cb4df to 7782919 Compare May 24, 2019 08:22
@rh-atomic-bot
Copy link
Collaborator

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

giuseppe added 5 commits May 25, 2019 13:46
block signals for the pause process, so it can't be killed by
mistake.

Signed-off-by: Giuseppe Scrivano <[email protected]>
move the logic for joining existing namespaces down to the rootless
package.  In main_local we still retrieve the list of conmon pid files
and use it from the rootless package.

In addition, create a temporary user namespace for reading these
files, as the unprivileged user might not have enough privileges for
reading the conmon pid file, for example when running with a different
uidmap and root in the container is different than the rootless user.

Closes: containers#3187

Signed-off-by: Giuseppe Scrivano <[email protected]>
otherwise the processes we leave around will be killed once the
session terminates.

Signed-off-by: Giuseppe Scrivano <[email protected]>
since we now enter the user namespace prior to read the conmon.pid, we
can write the conmon.pid file again to the runtime dir.

This reverts commit 6c6a865.

Signed-off-by: Giuseppe Scrivano <[email protected]>
as it is used only by the rootless package now.

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe
Copy link
Member Author

let's get this merged if there are no objections, so we have time to play with it before the release

@mheon
Copy link
Member

mheon commented May 29, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 29, 2019
@openshift-merge-robot openshift-merge-robot merged commit aed91ce into containers:master May 29, 2019
@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 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 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
7 participants