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. --- lib/network/drakvpn.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/network/drakvpn.pm b/lib/network/drakvpn.pm index 1ffafda..4e259d9 100644 --- a/lib/network/drakvpn.pm +++ b/lib/network/drakvpn.pm @@ -9,7 +9,9 @@ network::drakvpn - Interactive VPN configuration use interactive; use network::drakvpn; - my $in = 'interactive'->vnew('su'); + require_root_capability(); + + my $in = 'interactive'->vnew; network::drakvpn::create_connection($in); =cut -- cgit v1.2.1