summaryrefslogtreecommitdiffstats
path: root/src/privsep.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-24 10:30:23 +0000
committerRoy Marples <roy@marples.name>2020-05-24 10:30:23 +0000
commitf643f08e35fad9e54777b0e327c8cf768f2d82b3 (patch)
treee7847afc494da9d0ed00c6fbce96bedeb40e8e50 /src/privsep.h
parenta4951704171655b11c683bacff6df58da5287aa2 (diff)
downloaddhcpcd-f643f08e35fad9e54777b0e327c8cf768f2d82b3.tar.xz
privsep: Allow dev plugins to work
For udev at least, it requires a /var/run to be available in the chroot which is poor. As such, give it a full IPC.
Diffstat (limited to 'src/privsep.h')
-rw-r--r--src/privsep.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/privsep.h b/src/privsep.h
index 09bfa897..93058225 100644
--- a/src/privsep.h
+++ b/src/privsep.h
@@ -57,6 +57,16 @@
#define PS_IP6FORWARDING 0x0104
#define PS_GETIFADDRS 0x0105
+/* Dev Commands */
+#define PS_DEV_LISTENING 0x0201
+#define PS_DEV_INITTED 0x0202
+#define PS_DEV_IFCMD 0x0203
+
+/* Dev Interface Commands (via flags) */
+#define PS_DEV_IFADDED 0x0001
+#define PS_DEV_IFREMOVED 0x0002
+#define PS_DEV_IFUPDATED 0x0003
+
/* Process commands */
#define PS_START 0x4000
#define PS_STOP 0x8000