I’d like to enable the RTP server on the pulseaudio snap within ubuntu core 18
sudo pactl load-module module-rtp-recv sap_address=192.168.0.1
but I receive the following error
Oct 01 00:26:24 localhost audit[962]: AVC apparmor="DENIED" operation="create" profile="snap.pulseaudio.pulseaudio" pid=962 comm="pulseaudio" family="inet" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
Oct 01 00:26:24 localhost pulseaudio.pulseaudio[810]: E: [pulseaudio] module-rtp-recv.c: Failed to create socket: Permission denied
Oct 01 00:26:24 localhost pulseaudio.pulseaudio[810]: E: [pulseaudio] module.c: Failed to load module "module-rtp-recv" (argument: "sap_address=192.168.0.1"): initialization failed.
Oct 01 00:26:24 localhost kernel: audit: type=1400 audit(1569889584.622:111): apparmor="DENIED" operation="create" profile="snap.pulseaudio.pulseaudio" pid=962 comm="pulseaudio" family="inet" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
I tried to connect the appropriate interface/plug with snap connect pulseaudio:network-bind
, but it didn’t work.
Looking at the source code, it looks like we might just be missing the network-bind plug?
https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio/tree/snapcraft.yaml
Any hints as to how I could get this working?
Thanks!!