openbsd-file: make sure to install magic + fix on musl

This commit is contained in:
q66 2020-01-30 18:59:34 +01:00
parent 2375b47faa
commit 546b842d0f
2 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,5 @@
--- file.c.orig 2020-01-30 15:16:15.402746181 +0100 --- file.c
+++ file.c 2020-01-30 15:16:29.514898212 +0100 +++ file.c
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
@ -8,3 +8,15 @@
#include <err.h> #include <err.h>
#include <errno.h> #include <errno.h>
--- seccomp-sandbox.c
+++ seccomp-sandbox.c
@@ -109,6 +109,9 @@ static const struct sock_filter filt_insns[] = {
#ifdef __NR_write
SC_ALLOW(__NR_write),
#endif
+#ifdef __NR_writev
+ SC_ALLOW(__NR_writev),
+#endif
/* Default deny. */
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),

View File

@ -1,7 +1,7 @@
# Template file for 'openbsd-file' # Template file for 'openbsd-file'
pkgname=openbsd-file pkgname=openbsd-file
version=6.2 version=6.2
revision=1 revision=2
wrksrc="file-${version}" wrksrc="file-${version}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--program-prefix=openbsd-" configure_args="--program-prefix=openbsd-"
@ -22,5 +22,6 @@ pre_configure() {
autoreconf -fi autoreconf -fi
} }
post_install() { post_install() {
vinstall magic 444 /etc
vlicense LICENSE vlicense LICENSE
} }