diff options
author | Colin Guthrie <colin@mageia.org> | 2013-09-29 19:23:42 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-09-29 20:33:01 +0100 |
commit | 0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9 (patch) | |
tree | 0e1ed9f5a239645bd586f307d6ffdd4b384c4291 /polkit/wrappers | |
parent | c610e1839b3903497a6f6d9009d997b7ac88eea5 (diff) | |
download | drakx-net-0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9.tar drakx-net-0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9.tar.gz drakx-net-0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9.tar.bz2 drakx-net-0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9.tar.xz drakx-net-0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9.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:
draknetcenter requires authentication as the current user.
Everything else require authentication as an administrator.
Diffstat (limited to 'polkit/wrappers')
-rwxr-xr-x | polkit/wrappers/drakconnect | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakfirewall | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakgw | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakhosts | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakids | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakinvictus | 2 | ||||
-rwxr-xr-x | polkit/wrappers/draknetcenter | 2 | ||||
-rwxr-xr-x | polkit/wrappers/draknetprofile | 2 | ||||
-rwxr-xr-x | polkit/wrappers/draknfs | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakproxy | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakroam | 2 | ||||
-rwxr-xr-x | polkit/wrappers/draksambashare | 2 | ||||
-rwxr-xr-x | polkit/wrappers/drakvpn | 2 |
13 files changed, 26 insertions, 0 deletions
diff --git a/polkit/wrappers/drakconnect b/polkit/wrappers/drakconnect new file mode 100755 index 0000000..7f2ee3f --- /dev/null +++ b/polkit/wrappers/drakconnect @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakconnect $* diff --git a/polkit/wrappers/drakfirewall b/polkit/wrappers/drakfirewall new file mode 100755 index 0000000..9cf24ca --- /dev/null +++ b/polkit/wrappers/drakfirewall @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakfirewall $* diff --git a/polkit/wrappers/drakgw b/polkit/wrappers/drakgw new file mode 100755 index 0000000..240f80f --- /dev/null +++ b/polkit/wrappers/drakgw @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakgw $* diff --git a/polkit/wrappers/drakhosts b/polkit/wrappers/drakhosts new file mode 100755 index 0000000..d028be8 --- /dev/null +++ b/polkit/wrappers/drakhosts @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakhosts $* diff --git a/polkit/wrappers/drakids b/polkit/wrappers/drakids new file mode 100755 index 0000000..8a5b73f --- /dev/null +++ b/polkit/wrappers/drakids @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakids $* diff --git a/polkit/wrappers/drakinvictus b/polkit/wrappers/drakinvictus new file mode 100755 index 0000000..d7f0a62 --- /dev/null +++ b/polkit/wrappers/drakinvictus @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakinvictus $* diff --git a/polkit/wrappers/draknetcenter b/polkit/wrappers/draknetcenter new file mode 100755 index 0000000..47c6f55 --- /dev/null +++ b/polkit/wrappers/draknetcenter @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/draknetcenter $* diff --git a/polkit/wrappers/draknetprofile b/polkit/wrappers/draknetprofile new file mode 100755 index 0000000..e1e5bd7 --- /dev/null +++ b/polkit/wrappers/draknetprofile @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/draknetprofile $* diff --git a/polkit/wrappers/draknfs b/polkit/wrappers/draknfs new file mode 100755 index 0000000..2e90f23 --- /dev/null +++ b/polkit/wrappers/draknfs @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/draknfs $* diff --git a/polkit/wrappers/drakproxy b/polkit/wrappers/drakproxy new file mode 100755 index 0000000..3bb43c8 --- /dev/null +++ b/polkit/wrappers/drakproxy @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakproxy $* diff --git a/polkit/wrappers/drakroam b/polkit/wrappers/drakroam new file mode 100755 index 0000000..9b5747e --- /dev/null +++ b/polkit/wrappers/drakroam @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakroam $* diff --git a/polkit/wrappers/draksambashare b/polkit/wrappers/draksambashare new file mode 100755 index 0000000..13e4c91 --- /dev/null +++ b/polkit/wrappers/draksambashare @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/draksambashare $* diff --git a/polkit/wrappers/drakvpn b/polkit/wrappers/drakvpn new file mode 100755 index 0000000..17d091f --- /dev/null +++ b/polkit/wrappers/drakvpn @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakvpn $* |