GNOME Bugzilla – Bug 665671
Use polkit meta actions
Last modified: 2021-06-09 16:09:27 UTC
As of soon to be released polkit version 0.103, a new concept of "meta actions" is now available. See http://cgit.freedesktop.org/PolicyKit/commit/?id=6bbd5189e967e8ddc36100bf22cd12bcb152ab5f for details. This feature was added because some GNOME Control Center panels has UI that triggers calls into multiple mechanisms each using a different polkit action and thus possibly requiring the user to authenticate several times (one for each action). The new org.freedesktop.policykit.imply annotation allows the control center to define a single polkit action that then implies all the others if the user successfully authenticates. Additionally, this allows the control center to choose itself what kind of authentication is needed, e.g. administrator authentication or user authentication.
Need to review the PolicyKit usage in gnome-control-center for that.
datetime: uses org.gnome.controlcenter.datetime.configure, which implies org.freedesktop.timedate1.set-time org.freedesktop.timedate1.set-timezone org.freedesktop.timedate1.set-local-rtc org.freedesktop.timedate1.set-ntp info: uses org.freedesktop.hostname1.set-static-hostname printers: uses org.opensuse.cupspkhelper.mechanism.all-edit could possibly be improved by using imply annotations region: uses org.freedesktop.locale1.set-locale users: users org.freedesktop.accounts.user-administration
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new bug report at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/ Thank you for your understanding and your help.