aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-01-18 17:54:34 +0000
committerCy Schubert <cy@FreeBSD.org>2022-01-20 00:48:49 +0000
commit46e89c3461ac097b224f754904bf1bf2e869a1eb (patch)
tree7c05d8e19b0f703a71f676ace6926dea888564dd /net
parent668f82512de29295243e1a6baaae92b40e520f3a (diff)
downloadports-46e89c3461ac097b224f754904bf1bf2e869a1eb.tar.gz
ports-46e89c3461ac097b224f754904bf1bf2e869a1eb.zip
net/ntp: Reverse "Disable ntpd stack gap" for stable/13
As stack gap mitigations have been MFCed to stable/13, reverse "Disable ntpd stack gap" for __FreeBSD_version < 1300524 too. (cherry picked from commit a6e356e8f50f92acbdec6156c068e768d1835591)
Diffstat (limited to 'net')
-rw-r--r--net/ntp/Makefile2
-rw-r--r--net/ntp/files/patch-ntpd_ntpd.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index a1c62f232060..de084df97545 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -2,7 +2,7 @@
PORTNAME= ntp
PORTVERSION= 4.2.8p15
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/ \
diff --git a/net/ntp/files/patch-ntpd_ntpd.c b/net/ntp/files/patch-ntpd_ntpd.c
index 39c7af05780b..da804c897d4d 100644
--- a/net/ntp/files/patch-ntpd_ntpd.c
+++ b/net/ntp/files/patch-ntpd_ntpd.c
@@ -1,15 +1,17 @@
--- ntpd/ntpd.c.orig 2020-06-23 02:17:48.000000000 -0700
-+++ ntpd/ntpd.c 2021-10-16 07:59:32.497688000 -0700
-@@ -145,7 +145,7 @@
++++ ntpd/ntpd.c 2022-01-18 09:48:42.075461000 -0800
+@@ -145,7 +145,9 @@
# include <seccomp.h>
#endif /* LIBSECCOMP and KERN_SECCOMP */
-#ifdef __FreeBSD__
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400038
++#if defined(__FreeBSD_version) && \
++ ((__FreeBSD_version > 1400000 && __FreeBSD_version < 1400038) || \
++ (__FreeBSD_version > 1300000 && __FreeBSD_version < 1300524))
#include <sys/procctl.h>
#ifndef PROC_STACKGAP_CTL
/*
-@@ -438,7 +438,7 @@
+@@ -438,7 +440,7 @@
char *argv[]
)
{