https://bugzilla.suse.com/show_bug.cgi?id=1181642
https://bugzilla.suse.com/show_bug.cgi?id=1181642#c9
Matthias Gerstner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|IN_PROGRESS |RESOLVED
Resolution|--- |WONTFIX
--- Comment #9 from Matthias Gerstner ---
So this is a pretty confusing D-Bus interface. The D-Bus config file is found
in dtkcommon:
```
$ cat /etc/dbus-1/system.d/com.deepin.dtk.FileDrag.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow send_destination="*" send_path="/Ddnd"
send_interface="com.deepin.dtk.FileDrag"/>
<allow send_destination="*" send_path="/Ddnd"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="*" send_path="/Ddnd"
send_interface="org.freedesktop.DBus.Properties"/>
</policy>
</busconfig>
```
So it declares that everybody should be able to talk to some interface
com.deepin.dtk.FileDrag on the system bus.
The interface is implemented in dtkgui in dtkgui-5.4.0/src/dfiledragserver.cpp
and dtkgui-5.4.0/src/dfiledragclient.cpp. These are reusable classes that are
not actually used anywhere within dtkgui. The DFileDragServer has only two
D-Bus methods it implements:
```
public Q_SLOTS:
void setProgress(int progress);
void setState(DFileDragState state);
```
But it cannot really own a D-Bus service on the system bus, because the D-Bus
configuration FileDrag.conf above does not allow for that.
A usage of the FileDragServer class is found in the deepin-compressor package
in
deepin-compressor/deepin-compressor-5.10.0.15/src/source/tree/uncompressview.h.
It is unclear to me how this is all supposed to play together. Whitelisting a
"generic" D-Bus service like this that can be specialized by arbitrary
packages is something I don't like.
It sounds like this is about tracking file dragging state or whatever. This
should be possible to do on the D-Bus *session* bus which also has access to
the graphical context unlike the system bus.
Therefore I will not be whitelisting this D-Bus configuration file. Closing as
WONTFIX.
--
You are receiving this mail because:
You are on the CC list for the bug.