[pve-devel] applied: [PATCH v2 access-control 01/23] user.cfg: ensure propagate flag is 1/0 when parsing

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Nov 23 17:54:37 CET 2019


On 11/21/19 3:43 PM, Fabian Grünbichler wrote:
> otherwise this might end up as (arbitrary) string somewhere..
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  PVE/AccessControl.pm | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
> index aff9137..2a4fe14 100644
> --- a/PVE/AccessControl.pm
> +++ b/PVE/AccessControl.pm
> @@ -965,6 +965,8 @@ sub parse_user_config {
>  	} elsif ($et eq 'acl') {
>  	    my ($propagate, $pathtxt, $uglist, $rolelist) = @data;
>  
> +	    $propagate = $propagate ? 1 : 0;
> +
>  	    if (my $path = normalize_path($pathtxt)) {
>  		foreach my $role (split_list($rolelist)) {
>  
> 

applied





More information about the pve-devel mailing list