summaryrefslogtreecommitdiffstats
path: root/src/privsep.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.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.h')
-rw-r--r--src/privsep.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/privsep.h b/src/privsep.h
index 7428adc7..2bc9bac3 100644
--- a/src/privsep.h
+++ b/src/privsep.h
@@ -62,9 +62,9 @@
#define PS_IFIGNOREGRP 0x0106
/* Dev Commands */
-#define PS_DEV_LISTENING 0x0201
-#define PS_DEV_INITTED 0x0202
-#define PS_DEV_IFCMD 0x0203
+#define PS_DEV_LISTENING 0x1001
+#define PS_DEV_INITTED 0x1002
+#define PS_DEV_IFCMD 0x1003
/* Dev Interface Commands (via flags) */
#define PS_DEV_IFADDED 0x0001
@@ -72,8 +72,8 @@
#define PS_DEV_IFUPDATED 0x0003
/* Control Type (via flags) */
-#define PS_CTL_PRIV 0x0301
-#define PS_CTL_UNPRIV 0x0302
+#define PS_CTL_PRIV 0x0004
+#define PS_CTL_UNPRIV 0x0005
/* Process commands */
#define PS_START 0x4000