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 /old | |
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 'old')
-rwxr-xr-x | old/drakvpn-old | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/old/drakvpn-old b/old/drakvpn-old index 3f247a9..1e0806e 100755 --- a/old/drakvpn-old +++ b/old/drakvpn-old @@ -39,6 +39,7 @@ use Data::Dumper; $::isInstall and die "Not supported during install.\n"; +require_root_capability(); local $_ = join '', @ARGV; @@ -52,7 +53,7 @@ my $ipsec_conf = ""; my $racoon_conf = "/etc/racoon/racoon.conf"; my $ipsec_package = ""; -my $in = interactive->vnew('su'); +my $in = interactive->vnew; my $shorewall = network::shorewall::read($in); my @section_names; |