[pve-devel] [PATCH pve-common 3/3] CLIHandler.pm: remove run as root restriction

Dietmar Maurer dietmar at proxmox.com
Thu Jan 12 10:12:16 CET 2017


This should be checked somewhere else.

Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 src/PVE/CLIHandler.pm | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
index f08371c..687ac45 100644
--- a/src/PVE/CLIHandler.pm
+++ b/src/PVE/CLIHandler.pm
@@ -506,10 +506,6 @@ sub run_cli_handler {
 
     initlog($exename);
 
-    if ($class !~ m/^PVE::Service::/) {
-	die "please run as root\n" if $> != 0;
-    }
-
     no strict 'refs';
     my $def = ${"${class}::cmddef"};
 
-- 
2.1.4



More information about the pve-devel mailing list