thread-mainloop: keep SIGSYS unblocked if currently trapped
authorJulien Isorce <julien.isorce@gmail.com>
Mon, 19 Oct 2015 22:29:53 +0000 (23:29 +0100)
committerArun Raghavan <git@arunraghavan.net>
Wed, 21 Oct 2015 04:15:26 +0000 (09:45 +0530)
commit9817f396d5451070ba5c7ae7d11f7cc376911105
treeb63d206446e4c80ea533349bb1cdce7817b36540
parentc25b06577c2cc251c541732f245117c913206916
thread-mainloop: keep SIGSYS unblocked if currently trapped

Seccomp-BPF uses SIGSYS signal to trigger
the trap handler attached to sys_open.
If the signal is blocked then the kernel kills
the process whenever pulse audio calls 'open'.
The result backtrace is terminating in sys_open.

That's why it is required to keep SIGSYS unblocked
if it is currently unblocked and trapped.

This patch allows to have pulse audio working
in the Chromium sandbox.

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Signed-off-by: Arun Raghavan <git@arunraghavan.net>
src/pulse/thread-mainloop.c