summaryrefslogtreecommitdiffstats
path: root/polkit
diff options
context:
space:
mode:
Diffstat (limited to 'polkit')
-rwxr-xr-xpolkit/drakxconf2
-rw-r--r--polkit/org.mageia.control-centre-gui.policy22
-rw-r--r--polkit/org.mageia.control-centre.policy22
3 files changed, 46 insertions, 0 deletions
diff --git a/polkit/drakxconf b/polkit/drakxconf
new file mode 100755
index 00000000..db38e46a
--- /dev/null
+++ b/polkit/drakxconf
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/pkexec /usr/libexec/drakxconf
diff --git a/polkit/org.mageia.control-centre-gui.policy b/polkit/org.mageia.control-centre-gui.policy
new file mode 100644
index 00000000..2e25fe17
--- /dev/null
+++ b/polkit/org.mageia.control-centre-gui.policy
@@ -0,0 +1,22 @@
+<?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>Mageia Control Centre GUI</vendor>
+ <vendor_url>http://mageia.org/control-centre-gui</vendor_url>
+
+ <action id="org.mageia.control-centre-gui.pkexec.run">
+ <description>Run Mageia Control Centre GUI</description>
+ <message>Authentication is required to run Mageia Control Centre GUI</message>
+ <icon_name>drakconf</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/libexec/drakconf</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>
diff --git a/polkit/org.mageia.control-centre.policy b/polkit/org.mageia.control-centre.policy
new file mode 100644
index 00000000..bdc43663
--- /dev/null
+++ b/polkit/org.mageia.control-centre.policy
@@ -0,0 +1,22 @@
+<?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>Mageia Control Centre</vendor>
+ <vendor_url>http://mageia.org/control-centre</vendor_url>
+
+ <action id="org.mageia.control-centre.pkexec.run">
+ <description>Run Mageia Control Centre</description>
+ <message>Authentication is required to run Mageia Control Centre</message>
+ <icon_name>drakconf</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/libexec/drakxconf</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>