-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: use catatonit to maintain user+mnt namespace #12326
rootless: use catatonit to maintain user+mnt namespace #12326
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 |
@vrothberg PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, more catatonit 🥳
Other than the nit, LGTM
@@ -106,6 +106,10 @@ do_pause () | |||
for (i = 0; sig[i]; i++) | |||
sigaction (sig[i], &act, NULL); | |||
|
|||
/* Attempt to execv catatonit to keep the pause process alive. */ | |||
execl ("/usr/libexec/podman/catatonit", "catatonit", "-P", NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some distributions (e.g., openSUSE) ship it in /usr/bin/catatonit
. Could we add another fallback for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it fine to assume it has support for -P
even when distributed under /usr/bin
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amended and pushed a new version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it fine to assume it has support for
-P
even when distributed under/usr/bin
?
I think so since Podman now requires catatonit >= 0.17.0
LGTM, other then the path. |
if catatonit is present, use it to keep the rootless user+mnt namespace alive. [NO NEW TESTS NEEDED] no new features added. Signed-off-by: Giuseppe Scrivano <[email protected]>
214f5ad
to
3073543
Compare
/lgtm |
LGTM |
if catatonit is present, use it to keep the rootless user+mnt
namespace alive.
[NO NEW TESTS NEEDED] no new features added.
Signed-off-by: Giuseppe Scrivano [email protected]