jail: SIGSEGV must not be forwarded to the child process
authorLeonardo Mörlein <me@irrelefant.net>
Fri, 8 May 2020 00:58:24 +0000 (02:58 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 15 May 2020 18:10:43 +0000 (19:10 +0100)
commit2e738484c5722cf14e1414be66eeb5110bd2834c
treef3ba309226a4e7476a017208c40bf830d21aadb3
parent17e7ae769a4739e4b41a93f588d52cfd216b8eb2
jail: SIGSEGV must not be forwarded to the child process

A segfault in ujail caused ujail to hang with no chance to abort.
Raising the debug level revealed that SIGSEGV was delivered to
the child process instead of handled directly by ujail. The
corresponding debug message was triggered infinitely again and
again:

forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
forwarding signal 11 to the jailed process
[...]

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
jail/jail.c