summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-12-17 22:58:21 +0000
committerRichard Hughes <richard@hughsie.com>2010-12-17 22:58:21 +0000
commit1a086b709a436825c6af77d2a1d66b02e9b376eb (patch)
tree5cd96b64f1fe72892e81d6a753691abf7d69da94 /policy
parente197d80c8937c622f21f569457d1bbd05746d951 (diff)
downloadcolord-1a086b709a436825c6af77d2a1d66b02e9b376eb.tar.gz
Add initial buildsystem and basic DBus interface definitions
Very much work in progress, the DBus interfaces will still change lots...
Diffstat (limited to 'policy')
-rw-r--r--policy/.gitignore1
-rw-r--r--policy/Makefile.am7
-rw-r--r--policy/org.freedesktop.color.policy.in31
3 files changed, 39 insertions, 0 deletions
diff --git a/policy/.gitignore b/policy/.gitignore
new file mode 100644
index 0000000..2fff6d1
--- /dev/null
+++ b/policy/.gitignore
@@ -0,0 +1 @@
+org.freedesktop.color.policy
diff --git a/policy/Makefile.am b/policy/Makefile.am
new file mode 100644
index 0000000..7806d0d
--- /dev/null
+++ b/policy/Makefile.am
@@ -0,0 +1,7 @@
+@INTLTOOL_POLICY_RULE@
+polkit_policydir = $(datadir)/polkit-1/actions
+dist_polkit_policy_DATA = \
+ org.freedesktop.color.policy
+
+EXTRA_DIST = org.freedesktop.color.policy.in
+DISTCLEANFILES = org.freedesktop.color.policy
diff --git a/policy/org.freedesktop.color.policy.in b/policy/org.freedesktop.color.policy.in
new file mode 100644
index 0000000..2485dbe
--- /dev/null
+++ b/policy/org.freedesktop.color.policy.in
@@ -0,0 +1,31 @@
+<?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.0/policyconfig.dtd">
+<policyconfig>
+
+ <!--
+ Policy definitions for System Color Manager actions.
+ Copyright (c) 2010 Richard Hughes <richard@hughsie.com>
+ -->
+
+ <vendor>System Color Manager</vendor>
+ <vendor_url>http://www.freedesktop.org/projects/system-color-manager/</vendor_url>
+ <icon_name>application-vnd.iccprofile</icon_name>
+
+ <action id="org.freedesktop.color-manager.add-device">
+ <!-- SECURITY:
+ - Normal users should not have to authenticate to add devices
+ -->
+ <_description>Install color device</_description>
+ <_message>Authentication is required to add a color device</_message>
+ <icon_name>application-vnd.iccprofile</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+</policyconfig>
+