summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-10-28 11:18:27 +0000
committerRichard Hughes <richard@hughsie.com>2015-10-28 11:34:15 +0000
commitdbc27bd8f24eb0234f74e56e54e82d00fc82bb2c (patch)
treec4ca2f7a4dc046f1a8a43f070b7a6b15aca04ac3 /policy
parentc64c16c2d1ad9142ec8e74473044874bb6398728 (diff)
By popular demand, reintroduce the UpgradeSystem method
Diffstat (limited to 'policy')
-rw-r--r--policy/org.freedesktop.packagekit.policy.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/policy/org.freedesktop.packagekit.policy.in b/policy/org.freedesktop.packagekit.policy.in
index ae89edb7b..aac0fd1be 100644
--- a/policy/org.freedesktop.packagekit.policy.in
+++ b/policy/org.freedesktop.packagekit.policy.in
@@ -239,6 +239,22 @@
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/pk-device-rebind</annotate>
</action>
+ <action id="org.freedesktop.packagekit.upgrade-system">
+ <!-- SECURITY:
+ - Normal users require admin authentication to upgrade the disto as
+ this can make the system unbootable or stop other applications from
+ working.
+ -->
+ <_description>Upgrade System</_description>
+ <_message>Authentication is required to upgrade the operating system</_message>
+ <icon_name>package-x-generic</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ </action>
+
<action id="org.freedesktop.packagekit.repair-system">
<!-- SECURITY:
- Normal users require admin authentication to repair the system