Alexandre Ratchov <a...@caoua.org> wrote: > On Thu, May 30, 2019 at 09:07:45PM -0000, Stuart Henderson wrote: > > On 2019-05-30, Hrvoje Popovski <hrv...@srce.hr> wrote: > > > Hi all, > > > > > > i'm not sure is this intended or not, but if sndiod isn't running and if > > > i want to open youtube video with firefox i got this log > > > firefox[54192]: pledge "tty", syscall 54 and firefox crashes .... > > > when sndiod is running everything seems fine .. > > > > Similar with chromium's main process and audio. > > > > Maybe it would be nice if libsndio had an option to say "I'm a pledged > > program, error out instead of trying to talk to the device direct > > and killing the process" ... > > I see no reason to not add the "audio" promise to programs using > audio. There are few situations where using the device directly makes > perfectly sense.
I see no reason not to give firefox's main process every pledge known to man, and maybe invent a few more pledges to keep it happy. Oh come on. It is ridiculous. Thse programs are not designed to run with such restrictions. They believe they can do anything.