From 67465c3cc0ad03f52bb87f4e80bb04639c89cc69 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 3 Jun 2020 23:10:53 +0200 Subject: [PATCH] OpenBSD: Disable pledge() see #455 --- miniupnpd/configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miniupnpd/configure b/miniupnpd/configure index 67cdb83..31946c8 100755 --- a/miniupnpd/configure +++ b/miniupnpd/configure @@ -177,7 +177,9 @@ case $OS_NAME in #echo "OpenBSD majorversion=$MAJORVER minorversion=$MINORVER" # The pledge() system call first appeared in OpenBSD 5.9. if [ \( $MAJORVER -ge 6 \) -o \( $MAJORVER -eq 5 -a $MINORVER -ge 9 \) ]; then - echo "#define HAS_PLEDGE" >> ${CONFIGFILE} + # as of writing (OpenBSD 6.7) DIOCGETRULES is not included in the + # operations allowed by the "pf" pledge. + #echo "#define HAS_PLEDGE" >> ${CONFIGFILE} fi # rtableid was introduced in OpenBSD 4.0 if [ $MAJORVER -ge 4 ]; then