[dbus] Connection ":1.6" is not allowed to own the service

Ask questions about Arch Linux ARM. Please search before making a new topic.

[dbus] Connection ":1.6" is not allowed to own the service

Postby ELLIOTTCABLE » Mon May 18, 2015 4:22 am

I'm having trouble getting [font=courier]avahi[/font] to boot up:

$this->bbcode_second_pass_code('', '[root@alarmpi ~]# systemctl status avahi-daemon
* avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2015-05-18 03:18:10 UTC; 1min 37s ago
Process: 363 ExecStart=/usr/bin/avahi-daemon -s (code=exited, status=255)
Main PID: 363 (code=exited, status=255)
Status: "avahi-daemon 0.6.31 exiting."

May 18 03:18:09 alarmpi systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
May 18 03:18:09 alarmpi avahi-daemon[363]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
May 18 03:18:09 alarmpi avahi-daemon[363]: Successfully dropped root privileges.
May 18 03:18:09 alarmpi avahi-daemon[363]: avahi-daemon 0.6.31 starting up.
May 18 03:18:10 alarmpi avahi-daemon[363]: dbus_bus_request_name(): Connection ":1.6" is not allowed to own the service "org.freedesktop.Avahi" due to security policies in the configuration file
May 18 03:18:10 alarmpi systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
May 18 03:18:10 alarmpi systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
May 18 03:18:10 alarmpi systemd[1]: Unit avahi-daemon.service entered failed state.
May 18 03:18:10 alarmpi systemd[1]: avahi-daemon.service failed.
Hint: Some lines were ellipsized, use -l to show in full.')
I found a related post on Stack Overflow, but I've double-checked the dbus configuration file for avahi, and it seems fine:

$this->bbcode_second_pass_code('', '<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

<!-- Only root or user avahi can own the Avahi service -->
<policy user="avahi">
<allow own="org.freedesktop.Avahi"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.Avahi"/>
</policy>

<!-- Allow anyone to invoke methods on Avahi server, except SetHostName -->
<policy context="default">
<allow send_destination="org.freedesktop.Avahi"/>
<allow receive_sender="org.freedesktop.Avahi"/>

<deny send_destination="org.freedesktop.Avahi"
send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
</policy>

<!-- Allow everything, including access to SetHostName to users of the group "network" -->
<policy group="network">
<allow send_destination="org.freedesktop.Avahi"/>
<allow receive_sender="org.freedesktop.Avahi"/>
</policy>
<policy user="root">
<allow send_destination="org.freedesktop.Avahi"/>
<allow receive_sender="org.freedesktop.Avahi"/>
</policy>
</busconfig>')
ELLIOTTCABLE
 
Posts: 1
Joined: Mon May 18, 2015 4:14 am

Return to User Questions

Who is online

Users browsing this forum: No registered users and 18 guests