On Mon, Jul 30, 2018 at 07:56:00AM -0600, Theo de Raadt wrote:
> there are a lot of files in /dev ...
> 
> can you make this tighter?
> 

Yes. I'm experimenting around this right now. I'm looking at the
following possibilities:

(1) during initialization, parse device names to determine paths, then
    call unveil() for each file. This can work because sndiod knows in
    advance all devices it will use.

(2) Add a new /dev/snd/ directory and move /dev/audio* and /dev/rmidi*
    there. Then call unveil for the /dev/snd/ directory.

    This allows other audio/midi programs to use unveil (some allow
    the user to select the device).

you see other options? thoughts?

Reply via email to