upower/libupower-glib
Bastien Nocera d0ebbe32bb device: Only handle Refresh() method if in debug mode
The Refresh D-Bus method could be used by clients to force re-reading
the state of batteries in the upower backends. This is not needed as
all the backends should be sending events when their states changes,
removing the need for an explicit refresh.

This is also a potential security problem if applications keep on
refreshing their data.

We now only allow access to the Refresh() method if the daemon was
started in debugging mode. This should make it clearer that it is a
debug tool.

Also remove a mention of the never implemented refresh-power-source
polkit authorisation.
2022-04-19 15:27:36 +02:00
..
meson.build Remove Wakeups API 2022-03-24 17:02:27 +01:00
up-autocleanups.h Remove Wakeups API 2022-03-24 17:02:27 +01:00
up-client.c lib: Fix UpClient reference leak 2022-02-16 12:23:55 +01:00
up-client.h lib: Implement up_client_get_devices_async() 2022-01-23 23:26:33 +01:00
up-device.c device: Only handle Refresh() method if in debug mode 2022-04-19 15:27:36 +02:00
up-device.h lib: Mark device refresh function as deprecated 2021-08-19 18:57:35 +02:00
up-history-item.c Replace use of G_TYPE_INSTANCE_GET_PRIVATE 2019-02-21 12:09:06 +01:00
up-history-item.h lib: Work-around to fix gtk-doc's type detection 2018-09-30 19:18:35 +02:00
up-stats-item.c Replace use of G_TYPE_INSTANCE_GET_PRIVATE 2019-02-21 12:09:06 +01:00
up-stats-item.h lib: Work-around to fix gtk-doc's type detection 2018-09-30 19:18:35 +02:00
up-types.c lib: Add UP_DEVICE_KIND_BLUETOOTH_GENERIC type 2021-06-17 13:47:33 +02:00
up-types.h lib: Add UP_DEVICE_KIND_BLUETOOTH_GENERIC type 2021-06-17 13:47:33 +02:00
up-version.h.in lib: Use @see_also instead of "See also" 2018-09-30 19:19:02 +02:00
upower.h Remove Wakeups API 2022-03-24 17:02:27 +01:00