]> git.proxmox.com Git - pve-container.git/commitdiff
config: whitelist lxc.limit.*
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Apr 2017 12:08:40 +0000 (14:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Apr 2017 12:08:40 +0000 (14:08 +0200)
src/PVE/LXC/Config.pm

index 05cd970db6b352fcbf48bbbadf2c0ff609bdbc86..c0a2861411ad2b77d7cba75392c0115aa264a333 100644 (file)
@@ -441,6 +441,7 @@ my $valid_lxc_conf_keys = {
     'lxc.rootfs.options' => 'lxc.rootfs.options is not supported' .
                             ', please use mount point options in the "rootfs" key',
     # lxc.cgroup.*
+    # lxc.limit.*
     'lxc.cap.drop' => 1,
     'lxc.cap.keep' => 1,
     'lxc.aa_profile' => 1,
@@ -661,7 +662,7 @@ sub parse_pct_config {
            my $key = $1;
            my $value = $3;
            my $validity = $valid_lxc_conf_keys->{$key} || 0;
-           if ($validity eq 1 || $key =~ m/^lxc\.cgroup\./) {
+           if ($validity eq 1 || $key =~ m/^lxc\.(?:cgroup|limit)\./) {
                push @{$conf->{lxc}}, [$key, $value];
            } elsif (my $errmsg = $validity) {
                warn "vm $vmid - $key: $errmsg\n";