From ca10b9e0722acc5f055261e2337d48b930dbf114 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 1 Jun 2023 14:30:40 +0200 Subject: [PATCH] sys_linux: allow writev and TIOCGWINSZ in seccomp filter Allow more syscalls for musl. Reported-by: jvoisin --- sys_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys_linux.c b/sys_linux.c index c6cb453..6849637 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -603,6 +603,7 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context) SCMP_SYS(select), SCMP_SYS(set_robust_list), SCMP_SYS(write), + SCMP_SYS(writev), /* Miscellaneous */ SCMP_SYS(getrandom), @@ -657,7 +658,7 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context) const static int fcntls[] = { F_GETFD, F_SETFD, F_GETFL, F_SETFL }; const static unsigned long ioctls[] = { - FIONREAD, TCGETS, + FIONREAD, TCGETS, TIOCGWINSZ, #if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING) PTP_EXTTS_REQUEST, PTP_SYS_OFFSET, #ifdef PTP_PIN_SETFUNC