summaryrefslogtreecommitdiffstats
path: root/perl-install/polkit/policy/org.mageia.drakups.policy
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-09-04 20:15:38 +0100
committerColin Guthrie <colin@mageia.org>2013-09-06 15:29:45 +0100
commitc9ecd03156418390fa28b12825beb90626709c95 (patch)
tree4971c41238f93ab3297d431aaf9e2fe9fe999278 /perl-install/polkit/policy/org.mageia.drakups.policy
parentb7fa02336d4bfe8b9391d08ad0b6554a68a673e3 (diff)
downloaddrakx-c9ecd03156418390fa28b12825beb90626709c95.tar
drakx-c9ecd03156418390fa28b12825beb90626709c95.tar.gz
drakx-c9ecd03156418390fa28b12825beb90626709c95.tar.bz2
drakx-c9ecd03156418390fa28b12825beb90626709c95.tar.xz
drakx-c9ecd03156418390fa28b12825beb90626709c95.zip
Convert to polkit from usermode consolehelper for gaining root privileges
polkit is better integrated into various environments, both console and GUI and offers better access rules and prevents the internal need to run su which is prone to errors and doesn't offer an environment agnostic prompt to the user. In this case the current package policy (in rpm spec) has been migrated here and is as follows: drakclock requires no authentication to run (just a console login) drakfont requires authentication as the current user. drakups, drakauth, draklog and drakxservices require authentication as and administrator.
Diffstat (limited to 'perl-install/polkit/policy/org.mageia.drakups.policy')
-rw-r--r--perl-install/polkit/policy/org.mageia.drakups.policy22
1 files changed, 22 insertions, 0 deletions
diff --git a/perl-install/polkit/policy/org.mageia.drakups.policy b/perl-install/polkit/policy/org.mageia.drakups.policy
new file mode 100644
index 000000000..2af273084
--- /dev/null
+++ b/perl-install/polkit/policy/org.mageia.drakups.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</vendor>
+ <vendor_url>http://www.mageia.org/</vendor_url>
+
+ <action id="org.mageia.drakups.pkexec.run">
+ <description>Run Mageia UPS Configuration</description>
+ <message>Authentication is required to run Mageia UPS Configuration</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/drakups</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>