nsjconf->cgroup_net_cls_parent = njc.cgroup_net_cls_parent();
nsjconf->iface_lo = !(njc.iface_no_lo());
+ for (ssize_t i = 0; i < njc.iface_own().size(); i++) {
+ nsjconf->ifaces.push_back(njc.iface_own(i));
+ }
if (njc.has_macvlan_iface()) {
nsjconf->iface_vs = njc.macvlan_iface();
}
/* Should the 'lo' interface be brought up (active) inside this jail? */
optional bool iface_no_lo = 71 [default = false];
+ /* Put this interface inside the jail */
+ repeated string iface_own = 78;
+
/* Parameters for the cloned MACVLAN interface inside jail */
optional string macvlan_iface = 72; /* Interface to be cloned, eg 'eth0' */
optional string macvlan_vs_ip = 73 [default = "192.168.0.2"];