summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-09 22:39:05 +0100
committerRoy Marples <roy@marples.name>2020-06-09 22:39:05 +0100
commitd196c8b662de184e1e79600b16eb53498517ea1f (patch)
tree37ec3cade59bf03e850606123b3e5cbfd343a7d3 /src/privsep-root.h
parent6b6a7cb1d0700ca404f58854e477aa00d64e97f9 (diff)
downloaddhcpcd-d196c8b662de184e1e79600b16eb53498517ea1f.tar.xz
privsep: For Linux and Solaris, set RLIMIT_NOFILES to nevents
Because poll(2) returns EINVAL if nfds is higher. This really blows chunks, but it is what it is. An attacker could close a fd and open something else, but it's the best we can do.
Diffstat (limited to 'src/privsep-root.h')
-rw-r--r--src/privsep-root.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h
index 1de284bf..5d6e1248 100644
--- a/src/privsep-root.h
+++ b/src/privsep-root.h
@@ -64,7 +64,6 @@ ssize_t ps_root_ifignoregroup(struct dhcpcd_ctx *, const char *);
#endif
#ifdef __linux__
ssize_t ps_root_sendnetlink(struct dhcpcd_ctx *, int, struct msghdr *);
-ssize_t ps_root_writepathuint(struct dhcpcd_ctx *, const char *, unsigned int);
#endif
#ifdef PLUGIN_DEV