jail: add 'kill' method to container.%s object
authorDaniel Golle <daniel@makrotopia.org>
Tue, 28 Jul 2020 23:36:19 +0000 (00:36 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 29 Jul 2020 09:21:31 +0000 (10:21 +0100)
commit2d811a4b8816e65b89afdde92371dfef1857144c
tree74a4db3da51ae1e8b5afe762c18354f5c6ef3c54
parent12740336b315fdaccff8394d6e8538e951ad6764
jail: add 'kill' method to container.%s object

Using the the current container signal method to send a signal to the
jailed process works fine, as signals are being forwarded by the
ujail parent process. However, in case of KILL (==9) signal, both,
parent and jailed process are killed immediately which results in the
'poststop' OCI hook being skipped.
Add new 'kill' method to ujail's container object to allow sending
signals to the jailed process directly instead of having to send
signals to the parent.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c
service/service.c