-
Notifications
You must be signed in to change notification settings - Fork 126
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
Forward more messages on the sd-notify socket #469
Conversation
6b6d8d8
to
253f5e7
Compare
LGTM |
Please make sure to run this change against Podman's system tests |
This PR also fixes #311 |
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.
LGTM
So, I ran the podman test/system, and we're failing on this:
However, this also fails on conmon master, and I bisected it to commit 3605a36 |
253f5e7
to
dfd816d
Compare
Pushed a nop-change rebase to see if the cio test works now, as that seems unrelated. |
I created #470 for the podman test issue. |
If you modify the end of the PR description from
to something like this
there will be web links to both issues. (I think changing the git commit message does not have any effect on the web links) |
dfd816d
to
77674d7
Compare
Several of the standard sd-notify messages are safe to use from a container and are very useful. This commit cleans up the general handling of notify messages and allows forwarding of: * READY=1 * RELOADING=1 * STOPPING=1 * WATCHDOG=1 * WATCHDOG=trigger * STATUS=... * ERRNO=... * BUSERROR=... * MONOTONIC_USEC... See https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments for documentation of these. Note: We don't allow unknown messages to be forewarded. For one, all the file-descriptor based ones are currently unsupported (since the forwarding doesn't handle fds), but also some options (current and future) may be security sensitive. fixes containers#461 fixes containers#311 Signed-off-by: Alexander Larsson <[email protected]>
77674d7
to
20ce441
Compare
@haircommander could you please cut a new release? |
Several of the standard sd-notify messages are safe to use from a container and are very useful. This commit cleans up the general handling of notify messages and allows forwarding of:
See https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments for documentation of these.
Note: We don't allow unknown messages to be forewarded. For one, all the file-descriptor based ones are currently unsupported (since the forwarding doesn't handle fds), but also some options (current and future) may be security sensitive.
fixes #461
fixes #311