Inspecting pulseaudio source code I see only the following references to
getsockopt:

zyga@x200t:/tmp/pulseaudio-8.0$ grep -R getsockopt .
./src/pulsecore/poll-win32.c:  /* Under Wine, it seems that getsockopt returns 
0 for pipes too.
./src/pulsecore/socket-client.c:    if (getsockopt(c->fd, SOL_SOCKET, SO_ERROR, 
(void*)&error, &lerror) < 0) {
./src/pulsecore/socket-client.c:        pa_log("getsockopt(): %s", 
pa_cstrerror(errno));
./src/pulsecore/socket-client.c:        pa_log("getsockopt() returned invalid 
size.");
./src/modules/module-esound-sink.c:        if (getsockopt(u->fd, SOL_SOCKET, 
SO_SNDBUF, (void *) &so_sndbuf, &sl) < 0)
./src/modules/module-esound-sink.c:            
pa_log_warn("getsockopt(SO_SNDBUF) failed: %s", pa_cstrerror(errno));
./src/modules/raop/module-raop-sink.c:    if (getsockopt(u->fd, SOL_SOCKET, 
SO_SNDBUF, &so_sndbuf, &sl) < 0)
./src/modules/raop/module-raop-sink.c:        
pa_log_warn("getsockopt(SO_SNDBUF) failed: %s", pa_cstrerror(errno));

We can ignore the win32 code and then we are left with two modules and a
core file:

- the esound module is likely unused here
- the raop module is for AirPlay support (I guess not being used here)

This leaves us with  ./src/pulsecore/socket-client.c, reading the code
there it is getsockopt is only called from do_call() which is (via a
bunch of static helpers) called from nearly every
pa_socket_client_new_{ipv4,ipv6,...} functions.

I'm not familiar with pulseaudio architecture to know if this is
something that simply always required or only in certain configurations.

The interesting aspect is that the actual call looks like this:

getsockopt(c->fd, SOL_SOCKET, SO_ERROR, (void*)&error, &lerror)

Looking at snap-confine I don't see any support for getsockopt argument
filtering that would allow us to let pulseaudio always call this
particular flavor of getsockopt.


** Changed in: snapd (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1596717

Title:
  paplay doesn't work without the network interface

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1596717/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to