From c94dfbc2e898a0db8b8801162b60b05ca7ad749f Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 4 Oct 2021 17:14:03 +0200 Subject: [PATCH] kcgi: update to 0.13.0. --- srcpkgs/kcgi/patches/seccomp.patch | 24 ++++++++++++++++++++++++ srcpkgs/kcgi/template | 6 ++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/srcpkgs/kcgi/patches/seccomp.patch b/srcpkgs/kcgi/patches/seccomp.patch index ae93c14e5fe4..2cc0885bcd7c 100644 --- a/srcpkgs/kcgi/patches/seccomp.patch +++ b/srcpkgs/kcgi/patches/seccomp.patch @@ -59,3 +59,27 @@ #endif SC_ALLOW(madvise), #ifdef __NR_mmap2 /* EABI ARM only has mmap2() */ +--- a/sandbox-seccomp-filter.c ++++ b/sandbox-seccomp-filter.c +@@ -122,6 +122,9 @@ + #ifdef __NR_shutdown /* not defined on archs that go via socketcall(2) */ + SC_ALLOW(shutdown), + #endif ++#ifdef __NR_socketcall ++ SC_ALLOW(socketcall), ++#endif + SC_ALLOW(brk), + #ifdef __NR_ppoll + SC_ALLOW(ppoll), +--- a/sandbox-seccomp-filter.c ++++ b/sandbox-seccomp-filter.c +@@ -193,6 +193,9 @@ + #ifdef __NR_newfstatat + SC_ALLOW(newfstatat), /* for kutil_openlog logging */ + #endif ++#ifdef __NR_fstat64 ++ SC_ALLOW(fstat64), /* for kutil_openlog logging */ ++#endif + SC_ALLOW(write), + SC_ALLOW(writev), + SC_ALLOW(close), diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template index 021c97022dc8..7d7525e43abe 100644 --- a/srcpkgs/kcgi/template +++ b/srcpkgs/kcgi/template @@ -1,6 +1,6 @@ # Template file for 'kcgi' pkgname=kcgi -version=0.12.5 +version=0.13.0 revision=1 build_style=configure configure_args="PREFIX=/usr MANDIR=/usr/share/man SBINDIR=/usr/bin" @@ -15,7 +15,9 @@ license="ISC" homepage="http://kristaps.bsd.lv/kcgi/" changelog="https://kristaps.bsd.lv/kcgi/archive.html" distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz" -checksum=06ed033de3723651d76e2fac1c2442aaa3a28ac231cbfda4142dfb8782cab363 +checksum=d886e5700f5ec72b00cb668e9f06b7b3906b6ccdc5bab4c89e436d4cc4c0c7a1 + +export CFLAGS="-DENABLE_SECCOMP_FILTER=1" seccomp_audit_get_suffix() { case "$1" in