dropbox: How to restrict dbus with fine-grained permissions? #6548
-
Hi, I was reviewing Dropbox profile bundled together with firejail recently, and it doesn't has granular permissions for DBus, it seems that by default dbus is open for all. Actually impact is well described here: I've tried to update a little bit the profile, and I've found out a way how to log dbus communication, however I've confused about certain aspect. According to DBus communication log, I see that this messages are filtered, and it really numerous of them.
However when I've checked flatpak, how they doing it permissions through flatseal, I can see only two dbus names enabled for dropbox, while firejail dbus log has much more messages filtered.
BTW: I can test it on my local and make Pull Request for dropbox profile if needed, to have fine-grained permissions for dropbox. UPD: dbus log file: dropbox.dbus.log |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Of course not. However it is necessary dur to bad¹ API design. This permission is for tray icons. Also not that it is very contra intuitive what you actually can do when you're allowed to talk to a name. The ¹ bad in terms of sandboxing friendly
It's hard to tell. Generally the most names are talk. Names containing the program name are usually own. You can also compare the list of dbus names on your bus before starting the first program and while it is running unsandboxed. However this does not work if the program has dbus activatable names.
It depends. Do you want to make everything work (does Dropbox has plugins, user script, ...?). Or only the main functionality. Programs often try to talk to something w/o actually needing it.
Flatpak is using portals which are always allowed. Also nobody said the the flatpak Dropbox is complete. |
Beta Was this translation helpful? Give feedback.
No, with GNOME >= 3.36.1
org.freedesktop.Notifications
is pretty much safe. However there are more implementations fororg.freedesktop.Notifications
(KDE, Xfce, sway, ...). And other names thanorg.freedesktop.Notifications
are still unsafe.a11y is broken with firejail anyway AFAIK b…