summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-08-20 08:33:14 +0100
committerRichard Hughes <richard@hughsie.com>2009-08-20 08:33:14 +0100
commit8098592c467046b39d97b41d5279a62720cbf2da (patch)
treed6132471dc7a2bae3ba40860f561456c672b612d /policy
parent3eaec649129364670922b829cc407ac185bffa6c (diff)
Add the device rebinding functionality required for the session to install drivers
Diffstat (limited to 'policy')
-rw-r--r--policy/org.freedesktop.packagekit.policy.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/policy/org.freedesktop.packagekit.policy.in b/policy/org.freedesktop.packagekit.policy.in
index e7d000b4..e5e5522a 100644
--- a/policy/org.freedesktop.packagekit.policy.in
+++ b/policy/org.freedesktop.packagekit.policy.in
@@ -197,5 +197,24 @@
</defaults>
</action>
+ <action id="org.freedesktop.packagekit.device-rebind">
+ <!-- SECURITY:
+ - Normal users require admin authentication to rebind a driver
+ so that it works after we install firmware.
+ - This should not be set to 'yes' as unprivileged users could then
+ try to rebind drivers in use, for instance security authentication
+ devices.
+ -->
+ <_description>Reload a device</_description>
+ <_message>Authentication is required to reload the device with a new driver</_message>
+ <icon_name>package-x-generic</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/pk-device-rebind</annotate>
+ </action>
+
</policyconfig>