summaryrefslogtreecommitdiffstats
path: root/src/privsep.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-12-10 21:00:58 +0000
committerRoy Marples <roy@marples.name>2019-12-10 21:00:58 +0000
commit3ac9885e95854fd82dc498fbc3871a04b5ed1c69 (patch)
treec5ea716fb398af9892c779107328c5f4b7ea5a24 /src/privsep.c
parente02016b276ef1dbd02f02ba0b1c9a0e71639f28b (diff)
downloaddhcpcd-3ac9885e95854fd82dc498fbc3871a04b5ed1c69.tar.xz
privsep: Enable ARP BPF filtering for interesting addresses
This brings parity with non privsep features. Aside from the lack of Solaris support, but that's another day.
Diffstat (limited to 'src/privsep.c')
-rw-r--r--src/privsep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/privsep.c b/src/privsep.c
index b1b06971..c3e0f0e5 100644
--- a/src/privsep.c
+++ b/src/privsep.c
@@ -650,6 +650,7 @@ ps_newprocess(struct dhcpcd_ctx *ctx, struct ps_id *psid)
return NULL;
psp->psp_ctx = ctx;
memcpy(&psp->psp_id, psid, sizeof(psp->psp_id));
+ psp->psp_work_fd = -1;
TAILQ_INSERT_TAIL(&ctx->ps_processes, psp, next);
return psp;
}