aboutsummaryrefslogtreecommitdiffstats
path: root/polkit/wrappers/gurpmi.addmedia
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-09-03 11:58:05 +0100
committerColin Guthrie <colin@mageia.org>2013-09-03 12:15:20 +0100
commitf7cc863196075c0f0634a115e3417370e8646acd (patch)
treed1e48cddebb32982e154c543bc69a2133a1680fa /polkit/wrappers/gurpmi.addmedia
parentce2a0726339307d5b747ac397825adf2cad396ac (diff)
downloadrpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.gz
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.bz2
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.xz
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.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. The 'auth as user' (as opposed to 'auth as root') for the 'MageiaUpdate' binary has been ported to the polkit equiv. mga#11125
Diffstat (limited to 'polkit/wrappers/gurpmi.addmedia')
-rwxr-xr-xpolkit/wrappers/gurpmi.addmedia2
1 files changed, 2 insertions, 0 deletions
diff --git a/polkit/wrappers/gurpmi.addmedia b/polkit/wrappers/gurpmi.addmedia
new file mode 100755
index 00000000..2e029258
--- /dev/null
+++ b/polkit/wrappers/gurpmi.addmedia
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/pkexec /usr/libexec/gurpmi.addmedia $*