jail: adapt to new ubus socket path
authorDaniel Golle <daniel@makrotopia.org>
Mon, 19 Oct 2020 16:00:26 +0000 (17:00 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 19 Oct 2020 16:00:26 +0000 (17:00 +0100)
The previous commit
3121467 ("early: run ubusd non-root as user ubus, group ubus")
changed the path of the ubus socket from /var/run/ubus.sock to
/var/run/ubus/ubus.sock. Adapt jail to also mount-bind that new
path for jails which include ubus access (eg. dnsmasq).

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

index 0a2f978fd9c583e7f75dd0488ff8409fa82e30df..ec2ec956684bae003072dcd67181db0faf8956e7 100644 (file)
@@ -2366,7 +2366,7 @@ int main(int argc, char **argv)
 {
        uid_t uid = getuid();
        const char log[] = "/dev/log";
-       const char ubus[] = "/var/run/ubus.sock";
+       const char ubus[] = "/var/run/ubus/ubus.sock";
        int ch, ret;
 
        if (uid) {