summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.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-root.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-root.h')
-rw-r--r--src/privsep-root.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h
index 998c7830..a56e30af 100644
--- a/src/privsep-root.h
+++ b/src/privsep-root.h
@@ -59,4 +59,9 @@ 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
+int ps_root_dev_initialized(struct dhcpcd_ctx *, const char *);
+int ps_root_dev_listening(struct dhcpcd_ctx *);
+#endif
+
#endif