jail: make use of per-container netifd via ubus
authorDaniel Golle <daniel@makrotopia.org>
Tue, 12 Oct 2021 00:30:38 +0000 (01:30 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 12 Oct 2021 23:36:00 +0000 (00:36 +0100)
commit82dd39024f63e53becd07c89831ed7d5fac7f339
treeb71b870afba42942b788d1cdf87fccb7e365973e
parentc44ab7fa061fda06d1496b6273ac7151189fb7a9
jail: make use of per-container netifd via ubus

Make ujail expose 'network_reload' function on ubus so we can
reconfigure network interfaces inside containers.
Automatically call that function on network config changes by
subscribing to ubus 'service' object and waiting for 'config.change'
events concerning the network configuration.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c
jail/jail.h
jail/netifd.c