summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-03 17:00:56 +0100
committerRoy Marples <roy@marples.name>2020-10-03 17:00:56 +0100
commit984496259fe1b2fb7fd04d7f2c348ac1a2c7985f (patch)
tree1e2e7cc17136f003a6b8d721306654a1a05fa8c2 /src/if-bsd.c
parentd13d954be2a7e366e2c5090bf95d762074c278ff (diff)
downloaddhcpcd-984496259fe1b2fb7fd04d7f2c348ac1a2c7985f.tar.xz
privsep: We need getsockopt as well as setsockopt on the link socket
So we can report receive buffer size. Important for route(4) overflow so we can try and set a bigger buffer.
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index 75b7e62a..8f10acdc 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -216,8 +216,10 @@ if_opensockets_os(struct dhcpcd_ctx *ctx)
#endif
#ifdef PRIVSEP_RIGHTS
+ /* We need to getsockopt for SO_RCVBUF and
+ * setsockopt for RO_MISSFILTER. */
if (IN_PRIVSEP(ctx))
- ps_rights_limit_fd_setsockopt(ctx->link_fd);
+ ps_rights_limit_fd_sockopt(ctx->link_fd);
#endif
return 0;