diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 381: Adding a Policy Kit action definition file, which should live in /usr/share/polkit-1/actions so w...

Message ID 20110720153535.9174.79334.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

James Tunnicliffe July 20, 2011, 3:35 p.m. UTC
Merge authors:
  James Tunnicliffe (dooferlad)
Related merge proposals:
  https://code.launchpad.net/~dooferlad/linaro-image-tools/fetch_image_pkexec_config/+merge/68437
  proposed by: James Tunnicliffe (dooferlad)
  review: Approve - Guilherme Salgado (salgado)
------------------------------------------------------------
revno: 381 [merge]
committer: James Tunnicliffe <james.tunnicliffe@linaro.org>
branch nick: linaro-image-tools
timestamp: Wed 2011-07-20 16:33:41 +0100
message:
  Adding a Policy Kit action definition file, which should live in /usr/share/polkit-1/actions so when pkexec linaro-media-create is called we have more information and less clutter in the Policy Kit auth dialog.
added:
  org.linaro.linaro-image-tools.policy


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== added file 'org.linaro.linaro-image-tools.policy'
--- org.linaro.linaro-image-tools.policy	1970-01-01 00:00:00 +0000
+++ org.linaro.linaro-image-tools.policy	2011-07-19 17:37:58 +0000
@@ -0,0 +1,20 @@ 
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+<policyconfig>
+
+  <vendor>Linaro</vendor>
+  <vendor_url>http://www.linaro.org</vendor_url>
+
+  <action id="org.linaro.linaro-image-tools.pkexec.run-linaro-media-create">
+    <description>Create a disk image by combining an OS image and a hardware pack.</description>
+    <message>Authentication is required to run linaro-media-create as $(user)</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin</allow_active>
+    </defaults>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/linaro-media-create</annotate>
+  </action>
+
+</policyconfig>