From 1f6bb398e8c471e3487d3c925f01b4be3633fb63 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 9 Feb 2017 17:52:48 +0100 Subject: [PATCH] bind: update to 9.10.4P6. Allow getrandom(2) from seccomp. --- srcpkgs/bind/patches/getrandom.patch | 34 ++++++++++++++++++++++++++++ srcpkgs/bind/template | 6 ++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/bind/patches/getrandom.patch diff --git a/srcpkgs/bind/patches/getrandom.patch b/srcpkgs/bind/patches/getrandom.patch new file mode 100644 index 00000000000..c284ff312ba --- /dev/null +++ b/srcpkgs/bind/patches/getrandom.patch @@ -0,0 +1,34 @@ +--- bin/named/include/named/seccomp.h.orig ++++ bin/named/include/named/seccomp.h +@@ -58,6 +58,7 @@ + SCMP_SYS(fstat), + SCMP_SYS(epoll_ctl), + SCMP_SYS(gettimeofday), ++ SCMP_SYS(getrandom), + SCMP_SYS(unlink), + SCMP_SYS(socket), + SCMP_SYS(sendto), +@@ -121,6 +122,7 @@ + "fstat", + "epoll_ctl", + "gettimeofday", ++ "getrandom", + "unlink", + "socket", + "sendto", +@@ -190,6 +192,7 @@ + SCMP_SYS(fstat64), + SCMP_SYS(epoll_ctl), + SCMP_SYS(gettimeofday), ++ SCMP_SYS(getrandom), + SCMP_SYS(unlink), + #ifndef ISC_PLATFORM_USETHREADS + SCMP_SYS(fcntl64), +@@ -226,6 +229,7 @@ + "fstat64", + "epoll_ctl", + "gettimeofday", ++ "getrandom", + "unlink", + #ifndef ISC_PLATFORM_USETHREADS + "fcntl64", diff --git a/srcpkgs/bind/template b/srcpkgs/bind/template index bc70d2803b3..177f84fe54d 100644 --- a/srcpkgs/bind/template +++ b/srcpkgs/bind/template @@ -1,16 +1,16 @@ # Template file for 'bind' pkgname=bind _distver=9.10.4 -_patchver=P3 +_patchver=P6 version="${_distver}${_patchver}" -revision=3 +revision=1 wrksrc="${pkgname}-${_distver}-${_patchver}" short_desc="Berkeley Internet Name Domain server" maintainer="Juan RP " license="ISC" homepage="http://www.isc.org/software/bind/" distfiles="http://ftp.isc.org/isc/bind9/${_distver}-${_patchver}/bind-${_distver}-${_patchver}.tar.gz" -checksum=a075e5ce89fddccb0e64d1777d59161387dd5151cf4e7d1a93875a487812baef +checksum=a1dfbfd1d11cb52f2d9e5af0def25763798bda243841722dd0b319086a73ee65 build_options="geoip seccomp" build_options_default="geoip"