dbus_bus_request_name():不允许连接拥有服务 [英] dbus_bus_request_name (): Connections are not allowed to own the service

查看:871
本文介绍了dbus_bus_request_name():不允许连接拥有服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在手臂上构建了一个根文件系统.它应该运行dbus-daemon和avahi-daemon,但是当我尝试运行avahi-daemon

I built a root filesystem on arm. It should run dbus-daemon and avahi-daemon, but when I try to run avahi-daemon

$ dbus-daemon --system
$ avahi-daemon

我收到此消息:

Found user 'avahi' (UID 4) and group 'avahi' (GID 4).
Successfully dropped root privileges.
avahi-daemon 0.6.28 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns! 
dbus_bus_request_name(): Connection ":1.0" is not allowed to own the service "org.freedesktop.Avahi" due to security policies in the configuration file
WARNING: Failed to contact D-Bus daemon.
avahi-daemon 0.6.28 exiting.

怎么了?与dbus配置有关吗?

What is wrong? Is it about dbus configuration ?

推荐答案

我遇到了类似的问题,在我的情况下,系统数据包系统随附的默认avahi-dbus.conf仅缺少最后一个"</policy>" "</busconfig>"触发了此错误.

I had a similar problem, in my case the default avahi-dbus.conf that come with my system packet system just lack the last " </policy> " before " </busconfig> " which triggered this error.

我首先认为问题不是出自此文件,因为快速查看该文件不足以发现这种语法错误.

I first thought the problem didn't come from this file since a rapid look at it is not enough to find this kind of syntax error.

这篇关于dbus_bus_request_name():不允许连接拥有服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆