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

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jan 12 12:16:15 CET 2017


On Thu, Jan 12, 2017 at 10:12:16AM +0100, Dietmar Maurer wrote:
> This should be checked somewhere else.

should or is? ;)

> 
> 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
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list