[pulseaudio-discuss] [PATCH 0/2] fix pulseaudio for sandbox

Julien Isorce julien.isorce at gmail.com
Sat Oct 10 12:11:19 PDT 2015


- Problem:
One of the sandbox layer can be Seccomp-BPF.
When a process is in this mode, it currently
cannot use pulseaudio.

- Cause:
During startup, pulseaudio will crash the first time
it calls open from the thread that runs its main loop.
In thread-mainloop.c::thread, it blocks all signals.
But SIGSYS is actually the signal used by Seccomp-BPF.
So it has to be unblocked.
Otherwise pulseaudio crashes on the open.
(It is actually killed by the kernel)

Julien Isorce (2):
  pa_make_secure_dir: avoid calling fchmod if already right mode
  thread-mainloop: unblock SIGSYS on sandbox

 src/pulse/thread-mainloop.c | 10 ++++++++++
 src/pulsecore/core-util.c   |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

-- 
1.9.1



More information about the pulseaudio-discuss mailing list