diff options
| author | Roy Marples <roy@marples.name> | 2020-04-30 21:26:16 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-30 21:26:16 +0100 |
| commit | dc855cfb9870b2ce078f54ff5fe08deff1233a1f (patch) | |
| tree | c5c6691fccbf1fe59ed501e7feccfef9040f3529 /src | |
| parent | 949d0f9aee6aefa461c949262202af12fa8143cf (diff) | |
| download | dhcpcd-dc855cfb9870b2ce078f54ff5fe08deff1233a1f.tar.xz | |
privsep: allow --chrootdir= to configure a default chroot directory
Diffstat (limited to 'src')
| -rw-r--r-- | src/dhcpcd.c | 3 |
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); |
