conifg: parse cgroup_cpu settings
authorWiktor Garbacz <wiktorg@google.com>
Tue, 24 Jul 2018 13:20:44 +0000 (15:20 +0200)
committerWiktor Garbacz <wiktorg@google.com>
Tue, 24 Jul 2018 13:20:44 +0000 (15:20 +0200)
Fixes #87

config.cc

index 91377d0..2e2fced 100644 (file)
--- a/config.cc
+++ b/config.cc
@@ -245,6 +245,9 @@ static bool configParseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig&
        nsjconf->cgroup_net_cls_classid = njc.cgroup_net_cls_classid();
        nsjconf->cgroup_net_cls_mount = njc.cgroup_net_cls_mount();
        nsjconf->cgroup_net_cls_parent = njc.cgroup_net_cls_parent();
+       nsjconf->cgroup_cpu_ms_per_sec = njc.cgroup_cpu_ms_per_sec();
+       nsjconf->cgroup_cpu_mount = njc.cgroup_cpu_mount();
+       nsjconf->cgroup_cpu_parent = njc.cgroup_cpu_parent();
 
        nsjconf->iface_lo = !(njc.iface_no_lo());
        for (ssize_t i = 0; i < njc.iface_own().size(); i++) {