On Tue, Jul 9, 2019 at 2:10 PM Andrew Lowe <a...@wht.com.au> wrote:
>
>   * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
>   * ACCESS DENIED:  open_wr:      /dev/snd/controlC0

This has nothing to do with permissions, and everything to do with the sandbox.

Most emerge phases are sandboxed.  This uses LD_PRELOAD to override
glibc functions to intercept filesystem access, which is why you're
also getting messages related to this (just going from memory so
forgive me if I have a minor detail off here).

If you want to override the sandbox behavior you need to stick a file
in /etc/sandbox.d/ with your changes, such as adding
SANDBOX_WRITE="/dev/snd" to your config.

In general though portage is configured to lock down filesystem writes
even as root so that build systems aren't dropping random files in
random places, or wiping out your hard drives.  We want the build
system to stay in /var/tmp and stick its install files in the image
directory, and then portage will catalog them and move them to your
filesystem so that it can cleanly uninstall things later.

You could also disable sandboxing entirely, but I would strongly
recommend NOT doing this.

-- 
Rich

Reply via email to