summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-11-24 17:47:35 +0000
committerRichard Hughes <richard@hughsie.com>2008-11-24 17:47:35 +0000
commit5a81daaa00cb8409eed485976f298dfb30c2ae89 (patch)
tree2ed0624a02a7fd03d84b4248a796a27e424a71a3 /policy
parent9eeda48cc8ac73fa9b208482cc7cab5edd6c406b (diff)
feature: add a PolicyKit rule so other users can cancel tasks from other users
Diffstat (limited to 'policy')
-rw-r--r--policy/org.freedesktop.packagekit.policy.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/policy/org.freedesktop.packagekit.policy.in b/policy/org.freedesktop.packagekit.policy.in
index b2ee0df42..e805b872d 100644
--- a/policy/org.freedesktop.packagekit.policy.in
+++ b/policy/org.freedesktop.packagekit.policy.in
@@ -13,8 +13,19 @@
<vendor_url>http://www.packagekit.org/</vendor_url>
<icon_name>package-x-generic</icon_name>
+ <action id="org.freedesktop.packagekit.cancel-foreign">
+ <_description>Cancel foreign task</_description>
+ <_message>Authentication is required to cancel a task that was not started by yourself</_message>
+ <icon_name>pk-package-delete</icon_name>
+ <vendor_url>http://www.packagekit.org/pk-reference.html#methods-cancel</vendor_url>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+
<action id="org.freedesktop.packagekit.package-install">
- <_description>Install local file</_description>
+ <_description>Install signed package</_description>
<_message>Authentication is required to install a signed package</_message>
<icon_name>pk-package-add</icon_name>
<vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-package</vendor_url>
@@ -35,7 +46,6 @@
</defaults>
</action>
-
<action id="org.freedesktop.packagekit.system-trust-signing-key">
<_description>Trust a key used for signing packages</_description>
<_message>Authentication is required to consider a key used for signing packages as trusted</_message>