summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-30 21:13:45 +0100
committerRoy Marples <roy@marples.name>2020-04-30 21:13:45 +0100
commit949d0f9aee6aefa461c949262202af12fa8143cf (patch)
treea5b0bd6b799e59714196e5774b67f239c7162b86 /src/dhcpcd.c
parent257dae21343e899ad2667aac9b981fa427b7541b (diff)
downloaddhcpcd-949d0f9aee6aefa461c949262202af12fa8143cf.tar.xz
privsep: Add --chroot configurable
Overrides the directory to chroot to away from the privilege separation users home directory.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index ceed1759..67ae0b2e 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1891,6 +1891,11 @@ main(int argc, char **argv)
case 'V':
i = 2;
break;
+#ifdef PRIVSEP
+ case O_CHROOT:
+ ctx.ps_chroot = optarg;
+ break;
+#endif
case '?':
if (ctx.options & DHCPCD_PRINT_PIDFILE)
continue;