summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorS.Çağlar Onur <caglar@pardus.org.tr>2007-10-26 16:22:31 +0300
committerS.Çağlar Onur <caglar@pardus.org.tr>2007-10-26 16:22:31 +0300
commit6c184847987b7c04c18f220d78cdbf32864e669d (patch)
tree1142be027507999c30de68c8d653075f5d6e3e3d /policy
parent18672af2b9e84330b91d9a742829adc9f3c9abd9 (diff)
Convert RefreshCache to a privileged operation but with default to allow when on active console.
The distro can then patch this default to whatever depending on the security policy - and the admin can of course change the default.
Diffstat (limited to 'policy')
-rw-r--r--policy/packagekit.policy9
1 files changed, 8 insertions, 1 deletions
diff --git a/policy/packagekit.policy b/policy/packagekit.policy
index 10faa240..2c27827d 100644
--- a/policy/packagekit.policy
+++ b/policy/packagekit.policy
@@ -72,5 +72,12 @@ Copyright (c) 2007 Richard Hughes <richard@hughsie.com>
</defaults>
</action>
+ <action id="org.freedesktop.packagekit.refresh-cache">
+ <description>Refresh package cache</description>
+ <message>System policy prevents refresh package cache</message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
</policyconfig>
-