OpenBSD: Disable pledge()

see #455
This commit is contained in:
Thomas Bernard 2020-06-03 23:10:53 +02:00
parent e1f3478519
commit 67465c3cc0
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 3 additions and 1 deletions

4
miniupnpd/configure vendored
View File

@ -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