From 0e4d73a7ded23e8b5a76d58bd5b448dd9e884ef9 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 29 Sep 2013 19:23:42 +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. 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. --- old/drakvpn-old | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'old/drakvpn-old') 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; -- cgit v1.2.1