Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>since dbus 1.6.12 (e.g. kubuntu 13.10), your connection will also be rejected unless you add to your dbus config file (either /etc/dbus-1/<em>mybus</em>.conf or the interface requiring remote access i.e. system.d/<em>my.interface.conf</em>)</p> <pre><code>&lt;apparmor mode="disabled"/&gt; </code></pre> <p><strong>UPDATE:</strong> After struggling to create a apparmor profile allowing the service to connect to the custom dbus-daemon, it seems the connection is always rejected due to a bug in DBUS... <strong>So for now we MUST</strong> disable apparmor whenever you use tcp=... Bug fix targetted for 14.04</p> <p>I opened a bug at <a href="https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1252821">bugs.launchpad.net</a> following discussion <a href="https://lists.ubuntu.com/archives/apparmor/2013-November/004681.html">here</a> with Tyler Hicks:</p> <blockquote> <p>The AppArmor mediation code only has the ability to check peer labels over UNIX domain sockets. It is most likely seeing an error when getting the label and then refusing the connection.</p> </blockquote> <p>Note: the disable flag is not recognized by dbus &lt; 1.6.12, so you need to package different versions of mydaemon.conf depending on systen), else dbus-daemon will fail on launch if no apparmor... I used for now in my CMakeLists.txt :</p> <pre><code>IF(EXISTS "/usr/sbin/apparmor_status") install(FILES dbus_daemon-apparmordisabled.conf RENAME dbus_daemon.conf DESTINATION /etc/dbus-1/ ) ELSE (EXISTS "/usr/sbin/apparmor_status") install(FILES dbus_daemon.conf DESTINATION /etc/dbus-1/ ) ENDIF(EXISTS "/usr/sbin/apparmor_status") </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload