]> git.proxmox.com Git - pve-container.git/commitdiff
config: whitelist lxc.cgroup2 raw keys
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Apr 2020 11:28:35 +0000 (13:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Apr 2020 06:53:41 +0000 (08:53 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Config.pm

index 000a4a2e5d8891e5086bd59037480f12dbfdf939..1443f8739d10fe165b8bf5004324a5bca3f15bed 100644 (file)
@@ -606,7 +606,7 @@ sub is_valid_lxc_conf_key {
     }
     my $validity = $valid_lxc_conf_keys->{$key};
     return $validity if defined($validity);
-    return 1 if $key =~ /^lxc\.cgroup\./  # allow all cgroup values
+    return 1 if $key =~ /^lxc\.cgroup2?\./  # allow all cgroup values
              || $key =~ /^lxc\.prlimit\./ # allow all prlimits
              || $key =~ /^lxc\.net\./;    # allow custom network definitions
     return 0;