summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-30 21:26:16 +0100
committerRoy Marples <roy@marples.name>2020-04-30 21:26:16 +0100
commitdc855cfb9870b2ce078f54ff5fe08deff1233a1f (patch)
treec5c6691fccbf1fe59ed501e7feccfef9040f3529 /src
parent949d0f9aee6aefa461c949262202af12fa8143cf (diff)
downloaddhcpcd-dc855cfb9870b2ce078f54ff5fe08deff1233a1f.tar.xz
privsep: allow --chrootdir= to configure a default chroot directory
Diffstat (limited to 'src')
-rw-r--r--src/dhcpcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 67ae0b2e..839209f9 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1826,6 +1826,9 @@ main(int argc, char **argv)
#endif
#ifdef PRIVSEP
ctx.ps_root_fd = ctx.ps_data_fd = -1;
+#ifdef PRIVSEP_CHROOT
+ ctx.ps_chroot = PRIVSEP_CHROOT;
+#endif
TAILQ_INIT(&ctx.ps_processes);
#endif
rt_init(&ctx);