After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665671 - Use polkit meta actions
Use polkit meta actions
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
Depends on:
Blocks:
 
 
Reported: 2011-12-06 15:08 UTC by David Zeuthen (not reading bugmail)
Modified: 2021-06-09 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2011-12-06 15:08:01 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.
Comment 1 Bastien Nocera 2012-02-03 11:37:36 UTC
Need to review the PolicyKit usage in gnome-control-center for that.
Comment 2 Matthias Clasen 2012-05-25 22:37:01 UTC
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
Comment 3 André Klapper 2021-06-09 16:09:27 UTC
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.