mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 16:48:33 -05:00
This reworks the dbus proxy to be more in line with the API proposed at https://bugs.freedesktop.org/show_bug.cgi?id=101902 In particular, it makes the filtering language more expressive. You can now filter both calls and broadcast recieves, and filters now work with wildcarded object paths, bus names and interfaces (BUS_NAME_IS_SUBTREE, OBJECT_PATH_IS_SUBTREE and empty interface in dbus API). We also more correctly track the rules for unique ids so that filter matching work for those too (previously filters only worked if you sent to the well known bus name, not the unique name). In terms of implementation, things have been simplified to *only* use Filter rules rather than tracking policies and filters separately. Also we track all the previously known owned names for a unique id rather than just the highest policy for it. We can then look up all filters for it, instead of a simplified policy only check. In terms of the CLI everything is the same, except --filter=foo has been renamed to --call=foo, to avoid the weird conflict with the --filter (no =..) option. We also added a similar --broadcast to filter received broadcasts. Closes: #1730 Approved by: alexlarsson