From 02beafcba8c6b5207095e8c3b3e6f0559e4f04ad Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 11 Feb 2017 22:16:08 +0100 Subject: [PATCH] bind: add getpid() to the seccomp whitelist --- .../patches/{getrandom.patch => seccomp.patch} | 16 ++++++++++------ srcpkgs/bind/template | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) rename srcpkgs/bind/patches/{getrandom.patch => seccomp.patch} (77%) diff --git a/srcpkgs/bind/patches/getrandom.patch b/srcpkgs/bind/patches/seccomp.patch similarity index 77% rename from srcpkgs/bind/patches/getrandom.patch rename to srcpkgs/bind/patches/seccomp.patch index c284ff312ba..f2ebcc12cd3 100644 --- a/srcpkgs/bind/patches/getrandom.patch +++ b/srcpkgs/bind/patches/seccomp.patch @@ -1,33 +1,37 @@ --- bin/named/include/named/seccomp.h.orig +++ bin/named/include/named/seccomp.h -@@ -58,6 +58,7 @@ +@@ -57,6 +57,8 @@ + SCMP_SYS(rt_sigsuspend), SCMP_SYS(fstat), SCMP_SYS(epoll_ctl), - SCMP_SYS(gettimeofday), ++ SCMP_SYS(getpid), + SCMP_SYS(getrandom), + SCMP_SYS(gettimeofday), SCMP_SYS(unlink), SCMP_SYS(socket), - SCMP_SYS(sendto), -@@ -121,6 +122,7 @@ +@@ -121,6 +123,8 @@ "fstat", "epoll_ctl", "gettimeofday", ++ "getpid", + "getrandom", "unlink", "socket", "sendto", -@@ -190,6 +192,7 @@ +@@ -190,6 +194,8 @@ SCMP_SYS(fstat64), SCMP_SYS(epoll_ctl), SCMP_SYS(gettimeofday), ++ SCMP_SYS(getpid), + SCMP_SYS(getrandom), SCMP_SYS(unlink), #ifndef ISC_PLATFORM_USETHREADS SCMP_SYS(fcntl64), -@@ -226,6 +229,7 @@ +@@ -226,6 +232,8 @@ "fstat64", "epoll_ctl", "gettimeofday", ++ "getpid", + "getrandom", "unlink", #ifndef ISC_PLATFORM_USETHREADS diff --git a/srcpkgs/bind/template b/srcpkgs/bind/template index 177f84fe54d..ffa9b4a529a 100644 --- a/srcpkgs/bind/template +++ b/srcpkgs/bind/template @@ -3,7 +3,7 @@ pkgname=bind _distver=9.10.4 _patchver=P6 version="${_distver}${_patchver}" -revision=1 +revision=2 wrksrc="${pkgname}-${_distver}-${_patchver}" short_desc="Berkeley Internet Name Domain server" maintainer="Juan RP "