summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-02 15:57:01 +0100
committerRoy Marples <roy@marples.name>2020-10-02 15:57:01 +0100
commitd13d954be2a7e366e2c5090bf95d762074c278ff (patch)
treee6ae83f03cd63796aaa505e9015bd0864ba6f142 /src/if-bsd.c
parentc4c15d9a6423827ea80cc537e6f7fcf7d6fc172d (diff)
downloaddhcpcd-d13d954be2a7e366e2c5090bf95d762074c278ff.tar.xz
privsep: allow CAP_SETSOCKOPT for route(4) fd.
If FreeBSD ever implements RO_MISSFILTER it will need special rights to work over Capsium.
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index 3eb78045..75b7e62a 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -215,6 +215,11 @@ if_opensockets_os(struct dhcpcd_ctx *ctx)
#warning kernel does not support route message filtering
#endif
+#ifdef PRIVSEP_RIGHTS
+ if (IN_PRIVSEP(ctx))
+ ps_rights_limit_fd_setsockopt(ctx->link_fd);
+#endif
+
return 0;
}