summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-21 18:28:27 +0100
committerRoy Marples <roy@marples.name>2020-05-21 18:28:27 +0100
commitb06b1423c89de4014e075a58239841b4e1028b77 (patch)
tree5ab4a83fffe2351057cb73d1e55e78b70f9e02d2 /src/privsep-root.h
parent79db244442f6d77b3031a277d4fa536d7a84860d (diff)
downloaddhcpcd-b06b1423c89de4014e075a58239841b4e1028b77.tar.xz
dhcpcd: Move the script file from per interface to global context
This *should* affect no-one, but you never know. The primary motivation for this is to ensure that nothing arbitary can be executed by the root process if anyone breaks into the chrooted unprivileged master process. It also makes for smaller code.
Diffstat (limited to 'src/privsep-root.h')
-rw-r--r--src/privsep-root.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h
index f4768a6c..bf02bb5f 100644
--- a/src/privsep-root.h
+++ b/src/privsep-root.h
@@ -42,7 +42,7 @@ 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);
+ssize_t ps_root_script(struct dhcpcd_ctx *, const void *, size_t);
int ps_root_getifaddrs(struct dhcpcd_ctx *, struct ifaddrs **);
ssize_t ps_root_os(struct ps_msghdr *, struct msghdr *);