summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-13 20:52:24 +0100
committerRoy Marples <roy@marples.name>2020-05-13 20:52:24 +0100
commita34dc1d4f46ce76020654eef5e3ff33542425149 (patch)
tree1629564b6e151f42ae2ccd735963365363247c6f /src/privsep-root.h
parentd65f4be81281ad3a69ffa65cf6fba3e4b9498df3 (diff)
downloaddhcpcd-a34dc1d4f46ce76020654eef5e3ff33542425149.tar.xz
privsep: Add a generic wrapper for getifaddrs(3)
Although this is only for Capsicum, the getifaddrs interface is quite portable although not POSIX. With this final change, the Master process can now enter Capsicum Capabilites Mode and this completes the Capsicum integration.
Diffstat (limited to 'src/privsep-root.h')
-rw-r--r--src/privsep-root.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h
index d1a1b54b..f4768a6c 100644
--- a/src/privsep-root.h
+++ b/src/privsep-root.h
@@ -35,12 +35,16 @@ pid_t ps_root_start(struct dhcpcd_ctx *ctx);
int ps_root_stop(struct dhcpcd_ctx *ctx);
ssize_t ps_root_readerror(struct dhcpcd_ctx *, void *, size_t);
+ssize_t ps_root_mreaderror(struct dhcpcd_ctx *, void **, size_t *);
ssize_t ps_root_ioctl(struct dhcpcd_ctx *, ioctl_request_t, void *, size_t);
ssize_t ps_root_unlink(struct dhcpcd_ctx *, const char *);
ssize_t ps_root_filemtime(struct dhcpcd_ctx *, const char *, time_t *);
ssize_t ps_root_readfile(struct dhcpcd_ctx *, const char *, void *, size_t);
ssize_t ps_root_writefile(struct dhcpcd_ctx *, const char *, mode_t,
const void *, size_t);
+ssize_t ps_root_script(const struct interface *, const void *, size_t);
+int ps_root_getifaddrs(struct dhcpcd_ctx *, struct ifaddrs **);
+
ssize_t ps_root_os(struct ps_msghdr *, struct msghdr *);
#if defined(BSD) || defined(__sun)
ssize_t ps_root_route(struct dhcpcd_ctx *, void *, size_t);
@@ -54,6 +58,5 @@ ssize_t ps_root_ip6forwarding(struct dhcpcd_ctx *);
ssize_t ps_root_sendnetlink(struct dhcpcd_ctx *, int, struct msghdr *);
ssize_t ps_root_writepathuint(struct dhcpcd_ctx *, const char *, unsigned int);
#endif
-ssize_t ps_root_script(const struct interface *, const void *, size_t);
#endif