-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
rootless: new function to join existing conmon processes #3188
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 |
f3a6b8f
to
94cb4df
Compare
Tested 6bca80bdfebf9d390ce1a9786ae6101c87f1322d for now, WFM, thanks! |
@jistr thanks for confirming it! |
LGTM |
1 similar comment
LGTM |
94cb4df
to
7782919
Compare
☔ The latest upstream changes (presumably #3196) made this pull request unmergeable. Please resolve the merge conflicts. |
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]>
7782919
to
153503e
Compare
let's get this merged if there are no objections, so we have time to play with it before the release |
/lgtm |
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]