summaryrefslogtreecommitdiffstats
path: root/src/privsep.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-01-21 20:08:56 +0000
committerRoy Marples <roy@marples.name>2020-01-21 20:08:56 +0000
commit8a4cd387823dc5e122839af9d9463985cb99f383 (patch)
treeab7c08ca4294a4286b081d78ba35fc86966ba2fc /src/privsep.h
parent744a752ca1a4ad3373b4835e8d1d2c1367bf3da0 (diff)
downloaddhcpcd-8a4cd387823dc5e122839af9d9463985cb99f383.tar.xz
privsep: copy configuration file into chroot
Only if it has changed. Saves having to maintian it outside of dhcpcdm in a script or something.
Diffstat (limited to 'src/privsep.h')
-rw-r--r--src/privsep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/privsep.h b/src/privsep.h
index babcb37c..8372c0e5 100644
--- a/src/privsep.h
+++ b/src/privsep.h
@@ -46,13 +46,14 @@
#define PS_ROUTE 0x11 /* Also used for NETLINK */
#define PS_SCRIPT 0x12
#define PS_UNLINK 0x13
+#define PS_COPY 0x14
/* BSD Commands */
-#define PS_IOCTLLINK 0x14
-#define PS_IOCTL6 0x15
+#define PS_IOCTLLINK 0x15
+#define PS_IOCTL6 0x16
/* Linux commands */
-#define PS_WRITEPATHUINT 0x16
+#define PS_WRITEPATHUINT 0x17
#define PS_DELETE 0x20
#define PS_START 0x40
@@ -136,6 +137,7 @@ TAILQ_HEAD(ps_process_head, ps_process);
#include "privsep-bpf.h"
#endif
+int ps_mkdir(char *);
int ps_init(struct dhcpcd_ctx *);
int ps_dropprivs(struct dhcpcd_ctx *);
int ps_start(struct dhcpcd_ctx *);