summaryrefslogtreecommitdiffstats
path: root/examples/org.qt.policykit.examples.conf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.qt.policykit.examples.conf')
-rw-r--r--examples/org.qt.policykit.examples.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/org.qt.policykit.examples.conf b/examples/org.qt.policykit.examples.conf
new file mode 100644
index 000000000..304d269f6
--- /dev/null
+++ b/examples/org.qt.policykit.examples.conf
@@ -0,0 +1,20 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- This configuration file specifies the required security policies
+ for the PolicyKit examples to work. -->
+
+ <!-- Only user root can own the PackageKit service -->
+ <policy user="root">
+ <allow own="org.qt.policykit.examples"/>
+ </policy>
+
+ <!-- Allow anyone to call into the service - we'll reject callers using PolicyKit -->
+ <policy context="default">
+ <allow send_destination="org.qt.policykit.examples"/>
+ </policy>
+
+</busconfig>
+