[Bug 212028] www/firefox: Add SNDIO option

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 29 03:04:34 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212028

Jan Beich (mail not working) <jbeich at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbeich at FreeBSD.org

--- Comment #9 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
(In reply to Tobias Kortkamp from comment #8)
> I never tried to run sndiod in a jail before. I usually start it on
> the host and use sndiod's networking feature for this.

If sndiod is running outside it's just one more way to escape jail. And there's
no pledge(2) support to limit what one can see outside.

> Running it directly from the command line as the non-root user you run
> Firefox as (e.g. `sndiod -dd -f rsnd/5` if you use /dev/dsp5) should
> make it run in a jail.

It works but not inside jail.

  $ sndiod -dd -f rsnd/3 &
  snd0.default: rec=0:1 play=0:1 vol=23170 dup

  $ firefox -no-remote youtube.com
  snd0: 48000Hz, s16le, play 0:1, rec 0:1, 8 blocks of 512 frames
  firefox0: 48000Hz, s16le, play 0:1, 9 blocks of 512 frames
  snd0: device started
  firefox0: attached at -4096, delta = 0
  snd0: disconnected

> If you haven't changed any of the hw.snd.report_* sysctls...

$ fgrep hw.snd /boot/loader.conf
hw.snd.verbose=2
hw.snd.latency=3
hw.snd.latency_profile=0
hw.snd.feeder_rate_quality=4

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


More information about the freebsd-gecko mailing list