summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-04-22 14:14:53 +0100
committerRichard Hughes <richard@hughsie.com>2008-04-22 14:14:53 +0100
commit2df0a1fd652da2973e6d1cfd40ab85014dc1ff86 (patch)
tree33ffb4cfef1417d33f950ed4c9325d54085dd891 /policy
parent548005a8a30d90e5a9234904e4db4cf24e27833e (diff)
seporate the PolicyKit roles into trusted and untrused for local file installs
Diffstat (limited to 'policy')
-rw-r--r--policy/org.freedesktop.packagekit.policy.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/policy/org.freedesktop.packagekit.policy.in b/policy/org.freedesktop.packagekit.policy.in
index 6b9b43e5..c69518df 100644
--- a/policy/org.freedesktop.packagekit.policy.in
+++ b/policy/org.freedesktop.packagekit.policy.in
@@ -24,9 +24,9 @@
</defaults>
</action>
- <action id="org.freedesktop.packagekit.localinstall">
+ <action id="org.freedesktop.packagekit.localinstall-untrusted">
<_description>Install local file</_description>
- <_message>Authentication is required to install a local file</_message>
+ <_message>Authentication is required to install an untrusted local file</_message>
<icon_name>pk-package-add</icon_name>
<vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-file</vendor_url>
<defaults>
@@ -35,6 +35,17 @@
</defaults>
</action>
+ <action id="org.freedesktop.packagekit.localinstall-trusted">
+ <_description>Install local file</_description>
+ <_message>Authentication is required to install a trusted local file</_message>
+ <icon_name>pk-package-add</icon_name>
+ <vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-file</vendor_url>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+
<action id="org.freedesktop.packagekit.install-signature">
<_description>Install security signature</_description>
<_message>Authentication is required to install a security signature</_message>