xpra icon
Bug tracker and wiki

Opened 10 days ago

Closed 9 days ago

#1640 closed task (fixed)

dbus server for the system wide proxy server

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 2.2
Component: server Version: trunk
Keywords: Cc:

Description (last modified by Antoine Martin)

Mostly ready following some simple cleanup refactoring.
Problem is... selinux.

Sep 13 14:13:22 desktop xpra[20431]: dbus server error
Sep 13 14:13:22 desktop xpra[20431]: Traceback (most recent call last):
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/xpra/server/dbus/dbus_common.py", line 12, in dbus_exception_wrap
Sep 13 14:13:22 desktop xpra[20431]:     v = fn()
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/xpra/server/proxy/proxy_server.py", line 87, in make_dbus_server
Sep 13 14:13:22 desktop xpra[20431]:     return Proxy_DBUS_Server(self)
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/xpra/server/proxy/proxy_dbus_server.py", line 25, in __init__
Sep 13 14:13:22 desktop xpra[20431]:     DBUS_Server_Base.__init__(self, bus, server, BUS_NAME)
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/xpra/server/dbus/dbus_server_base.py", line 21, in __init__
Sep 13 14:13:22 desktop xpra[20431]:     bus_name = dbus.service.BusName(name, bus)
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 131, in __new__
Sep 13 14:13:22 desktop xpra[20431]:     retval = bus.request_name(name, name_flags)
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 303, in request_name
Sep 13 14:13:22 desktop xpra[20431]:     'su', (name, flags))
Sep 13 14:13:22 desktop xpra[20431]:   File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
Sep 13 14:13:22 desktop xpra[20431]:     message, timeout)
Sep 13 14:13:22 desktop xpra[20431]: DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.187" is not allowed to own the service "org.xpra.Server" due to SELinux policy
Sep 13 14:13:22 desktop xpra[20431]: Error setting up server dbus instance:
Sep 13 14:13:22 desktop xpra[20431]:   org.freedesktop.DBus.Error.AccessDenied
Sep 13 14:13:22 desktop xpra[20431]:   Connection "
Sep 13 14:13:22 desktop xpra[20431]:   1.187" is not allowed to own the service "org.xpra.Server" due to SELinux policy
Sep 13 14:13:22 desktop xpra[20431]: xpra proxy version 2.2-r16801M 64-bit
Sep 13 14:13:22 desktop xpra[20431]:  uid=0 (root), gid=0 (root)
Sep 13 14:13:22 desktop xpra[20431]:  running with pid 20431 on Linux Fedora 26 TwentySix
Sep 13 14:13:22 desktop xpra[20431]: xpra is ready.

Related to #1105.

Attachments (1)

dbus-proxy-server.patch (11.7 KB) - added by Antoine Martin 10 days ago.
work in progress - only selinux to fix

Download all attachments as: .zip

Change History (2)

Changed 10 days ago by Antoine Martin

Attachment: dbus-proxy-server.patch added

work in progress - only selinux to fix

comment:1 Changed 9 days ago by Antoine Martin

Description: modified (diff)
Resolution: fixed
Status: newclosed

Done in r16841.
The system-wide proxy server only exposes a "GetInfo?" method, we can add more later. (and maybe include the ability to start sessions since dbus gives us the uid of sender?)

Note: See TracTickets for help on using tickets.