config: add --iface_own to the proto config
This commit is contained in:
parent
a30f2ddf12
commit
111481532b
@ -247,6 +247,9 @@ static bool configParseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig&
|
||||
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();
|
||||
}
|
||||
|
@ -217,6 +217,9 @@ message NsJailConfig {
|
||||
/* 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"];
|
||||
|
Loading…
Reference in New Issue
Block a user