summaryrefslogtreecommitdiffstats
path: root/src/privsep.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-10 16:09:54 +0100
committerRoy Marples <roy@marples.name>2020-05-10 16:09:54 +0100
commit8ec63e6a621b7f027121a31478450698641b84ba (patch)
treec90effa39a8875fdf93f703bd9174a3d7e59dc77 /src/privsep.h
parent1608a3170735cc697625b2d472286ba95fc88a91 (diff)
downloaddhcpcd-8ec63e6a621b7f027121a31478450698641b84ba.tar.xz
privsep: Implement pledge(2) support as found on OpenBSD
Diffstat (limited to 'src/privsep.h')
-rw-r--r--src/privsep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/privsep.h b/src/privsep.h
index 9d156e9e..d64210cd 100644
--- a/src/privsep.h
+++ b/src/privsep.h
@@ -34,6 +34,7 @@
/* Start flags */
#define PSF_DROPPRIVS 0x01
#define PSF_CAP_ENTER 0x02
+#define PSF_PLEDGE 0x04
/* Commands */
#define PS_BOOTP 0x01
@@ -53,9 +54,10 @@
#define PS_IOCTLLINK 0x15
#define PS_IOCTL6 0x16
#define PS_IOCTLINDIRECT 0x17
+#define PS_IP6FORWARDING 0x18
/* Linux commands */
-#define PS_WRITEPATHUINT 0x18
+#define PS_WRITEPATHUINT 0x19
#define PS_DELETE 0x20
#define PS_START 0x40