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
kill: allow to signal paused containers #1943
kill: allow to signal paused containers #1943
Conversation
regression introduced by 87a1889 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
The reason why we excluded
However the runtime spec doesn't support @crosbymichael WDYT? |
I get a question, from the original logic, function
so it also include |
|
I have considered the |
I've noticed the breaking change as we are using to signal a paused container in podman (to implement /cc @baude |
@giuseppe For https://github.com/opencontainers/runtime-spec/blob/7c4c8f63a63693f75cfa0f3f397151fb8d9732ad/runtime.md#Kill
I think we may not add But, I think, for https://github.com/opencontainers/runtime-spec/blob/7c4c8f63a63693f75cfa0f3f397151fb8d9732ad/runtime.md#state
I think So, I think to follow the runtime-spec standard, I think we may need to add a new function to check the containers status, for example:
Then, in runc/libcontainer/container_linux.go Line 385 in 07d1ad4
|
@@ -382,7 +382,7 @@ func (c *linuxContainer) Signal(s os.Signal, all bool) error { | |||
return err | |||
} | |||
// to avoid a PID reuse attack | |||
if status == Running || status == Created { | |||
if status == Running || status == Created || status == Paused { |
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.
I think to follow runtime-spec standard, we can add a func to transfer runc container state to runtime-spec state.
Please see: #1943 (comment)
@lifubang You're over-complicating things -- runc has a few extensions to the runtime-spec and one of those is the Given that As @giuseppe said this is a regression, so I'm okay with fixing this. LGTM. |
the regression we noticed in runc was fixed upstream: opencontainers/runc#1943 so we can use again runc from master. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
the regression we noticed in runc was fixed upstream: opencontainers/runc#1943 so we can use again runc from master. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
regression introduced by 87a1889
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com