From 738779e2e5245a33c6e42720e153baa068d276b5 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 4 Sep 2013 16:32:35 +0100 Subject: 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. Under the old scheme, the binaries relating to the three main tools covered in this package behaved differently. Keyboard and Mouse are allowed to be run without any password prompts, whereas X11 prompts for the *user* password. This is only true when run as their 'old' names of keyboarddrake, mousedrake and XFdrake respectively. If they are called via their 'new' names of drakkeyboard, drakmouse and drakx11, they would prompt for the root password. This change also standardises that behaviour. The tools now follow the scheme specified for their old names, regardless of how they are called. mga#11125 --- polkit/policy/org.mageia.drakkeyboard.policy | 22 ++++++++++++++++++++++ polkit/policy/org.mageia.drakmouse.policy | 22 ++++++++++++++++++++++ polkit/policy/org.mageia.drakx11.policy | 22 ++++++++++++++++++++++ polkit/wrappers/drakkeyboard | 2 ++ polkit/wrappers/drakmouse | 2 ++ polkit/wrappers/drakx11 | 2 ++ 6 files changed, 72 insertions(+) create mode 100644 polkit/policy/org.mageia.drakkeyboard.policy create mode 100644 polkit/policy/org.mageia.drakmouse.policy create mode 100644 polkit/policy/org.mageia.drakx11.policy create mode 100755 polkit/wrappers/drakkeyboard create mode 100755 polkit/wrappers/drakmouse create mode 100755 polkit/wrappers/drakx11 (limited to 'polkit') diff --git a/polkit/policy/org.mageia.drakkeyboard.policy b/polkit/policy/org.mageia.drakkeyboard.policy new file mode 100644 index 0000000..e3cd5bd --- /dev/null +++ b/polkit/policy/org.mageia.drakkeyboard.policy @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + Run Mageia Keyboard Configuration + Authentication is required to run Mageia Keyboard Configuration + drakconf + + no + no + yes + + /usr/libexec/drakkeyboard + true + + diff --git a/polkit/policy/org.mageia.drakmouse.policy b/polkit/policy/org.mageia.drakmouse.policy new file mode 100644 index 0000000..157e2d2 --- /dev/null +++ b/polkit/policy/org.mageia.drakmouse.policy @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + Run Mageia Mouse Configuration + Authentication is required to run Mageia Mouse Configuration + drakconf + + no + no + yes + + /usr/libexec/drakmouse + true + + diff --git a/polkit/policy/org.mageia.drakx11.policy b/polkit/policy/org.mageia.drakx11.policy new file mode 100644 index 0000000..efa8441 --- /dev/null +++ b/polkit/policy/org.mageia.drakx11.policy @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + Run Mageia Graphics Configuration + Authentication is required to run Mageia Graphics Configuration + drakconf + + no + no + auth_self_keep + + /usr/libexec/drakx11 + true + + diff --git a/polkit/wrappers/drakkeyboard b/polkit/wrappers/drakkeyboard new file mode 100755 index 0000000..f46e0ce --- /dev/null +++ b/polkit/wrappers/drakkeyboard @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakkeyboard $* diff --git a/polkit/wrappers/drakmouse b/polkit/wrappers/drakmouse new file mode 100755 index 0000000..6d66e3a --- /dev/null +++ b/polkit/wrappers/drakmouse @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakmouse $* diff --git a/polkit/wrappers/drakx11 b/polkit/wrappers/drakx11 new file mode 100755 index 0000000..601654b --- /dev/null +++ b/polkit/wrappers/drakx11 @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakx11 $* -- cgit v1.2.1