summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2020-10-19 16:00:26 +0000
committerDaniel Golle2020-10-19 16:00:26 +0000
commit12a5b97711b74efa72eae328c1e73b8fdfb76d74 (patch)
tree5ba8b85065de6b0d63704ea001e15bfd730068d1
parent31214674545c3703c1171a02a1949a5d3162bdee (diff)
downloadprocd-12a5b97711b74efa72eae328c1e73b8fdfb76d74.tar.gz
jail: adapt to new ubus socket path
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>
-rw-r--r--jail/jail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jail/jail.c b/jail/jail.c
index 0a2f978..ec2ec95 100644
--- a/jail/jail.c
+++ b/jail/jail.c
@@ -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) {