Bugzilla – Bug 1176474
AUDIT-0: powerdevil5 (suse-dbus-unauthorized-service, polkit-untracked-privilege)
Last modified: 2024-03-13 09:20:31 UTC
Hello, the upcoming version of Plasma 5 (5.20), planned for next month (October 13th) includes a new KAuth helper to handle new privileged operations, in particular, getting and setting battery charge thresholds in laptops that support it (like Lenovo Thinkpads). This meant that powerdevil5 has now additional helpers to handle this. Two new polkit privileges are asked: org.kde.powerdevil.chargethresholdhelper.getthreshold (??:yes:yes) and org.kde.powerdevil.chargethresholdhelper.setthreshold (??:no:auth_admin_keep). The two D-Bus service files found by rpmlint are: - /usr/share/dbus-1/system-services/org.kde.powerdevil.chargethresholdhelper.service - /usr/share/dbus-1/system.d/org.kde.powerdevil.chargethresholdhelper.conf Code used by the helper: - https://invent.kde.org/plasma/powerdevil/-/blob/master/daemon/chargethresholdhelper.cpp - https://invent.kde.org/plasma/powerdevil/-/blob/master/daemon/chargethresholdhelper.h - https://invent.kde.org/plasma/powerdevil/-/blob/master/daemon/chargethreshold_helper_actions.actions A package including these features is available at https://build.opensuse.org/package/show/KDE:Unstable:Frameworks/powerdevil5.
We will schedule this for review.
This is an autogenerated message for OBS integration: This bug (1176474) was mentioned in https://build.opensuse.org/request/show/838324 Factory / plasma5-workspace
I will do the review.
The new helper is okay. It only accepts integer parameters in D-Bus methods and they control the battery charging threshold. Only getting is allowed for locally logged in users, setting requires admin privileges. That's okay.
I started the whitelisting process and it should be available within a couple of days (polkit-default-privs and rpmlint are affected).
This is an autogenerated message for OBS integration: This bug (1176474) was mentioned in https://build.opensuse.org/request/show/839299 Factory / plasma5-workspace
Closing as fixed.
This is an autogenerated message for OBS integration: This bug (1176474) was mentioned in https://build.opensuse.org/request/show/841022 Factory / plasma5-workspace