Issues using dbus in strict

Jamie Strandboge jamie at canonical.com
Mon Apr 3 13:58:52 UTC 2017


On Fri, 2017-03-31 at 17:55 +0300, Sergey Borovkov wrote:

...

> Mar 31 12:44:02 localhost.localdomain kernel: audit: type=1400
> audit(1490964242.523:72): apparmor="DENIED" operation="connect" profile=
> "snap.screenly-client.websocket" name="/run/dbus/system_bus_socket"
> pid=1466 comm="python3" req
> Mar 31 12:44:02 localhost.localdomain audit[1466]: AVC apparmor="DENIED"
> operation="connect" profile="snap.screenly-client.websocket" name="/
> run/dbus/system_bus_socket" pid=1466 comm="python3" requested_mask="wr"
> denied_mask="wr"
> 
> I am not sure if I need to use some additional interfaces - to get it
> working under devmode I've used the following code (And I can't find
> anything relevant in wiki):
> 
>   playlist:
>     command: usr/bin/playlist-service.sh
>     daemon: simple
>     plugs: [network-bind, network]
>     slots: [playlist-dbus-server]
> 
>   websocket:
>     command: usr/bin/websocket-service.sh
>     daemon: simple
>     plugs: [network-bind, network, playlist-dbus-client]
> 
> slots:
>   playlist-dbus-server:
>     interface: dbus
>     name: com.screenly.playlist
>     bus: system
> 
> plugs:
>   playlist-dbus-client:
>     interface: dbus
>     name: com.screenly.playlist
>     bus: system

You shouldn't need additional interfaces. It sounds like your interfaces are not
connected. What is the output of 'snap interfaces'?

-- 
Jamie Strandboge             | http://www.canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170403/e8a739e3/attachment.sig>


More information about the Snapcraft mailing list