summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2026-03-24 23:10:14 +0000
committerDaniel Golle2026-03-24 23:48:23 +0000
commitcd7a4e5f8b8e4e7ce38f7e2be577802b7ec4ff3e (patch)
tree2bf375e1de85714b906e143ad19aad3a98bb8081
parent58eb263d5abe03f8c1280bdfa65a3b052614215d (diff)
downloadprocd-master.tar.gz
jail: mount /lib/config into netifd jailHEADmastermain
The DHCP and DHCPv6 protocol scripts in netifd source /lib/config/uci.sh during initialization. Without /lib/config/uci.sh bind-mounted into the jail, the netifd instance running inside a container's network namespace fails to start the DHCP client: ./dhcp.sh: .: line 8: can't open '/lib/config/uci.sh' ./dhcpv6.sh: .: line 5: can't open '/lib/config/uci.sh' Add /lib/config/uci.sh to the jail netifd mount list alongside the existing /lib/functions and /lib/functions.sh entries. Signed-off-by: Paul Spooren <mail@aparcar.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--jail/netifd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jail/netifd.c b/jail/netifd.c
index 6f9cd72..10d2e65 100644
--- a/jail/netifd.c
+++ b/jail/netifd.c
@@ -266,6 +266,7 @@ static void run_netifd(struct uloop_timeout *t)
blobmsg_add_string(&req, "/bin/kill", "0");
blobmsg_add_string(&req, "/bin/ubus", "0");
blobmsg_add_string(&req, "/etc/hotplug.d", "0");
+ blobmsg_add_string(&req, "/lib/config/uci.sh", "0");
blobmsg_add_string(&req, "/lib/functions", "0");
blobmsg_add_string(&req, "/lib/functions.sh", "0");
blobmsg_add_string(&req, "/lib/netifd", "0");