From f21e5f6cc5778d7a8afe4f3637519e7ce738e834 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 18 Nov 2015 12:42:38 +0100 Subject: [PATCH] sys_linux: allow ioctl(TCGETS) in seccomp filter This seems to be needed to allow fopen() called on /dev/urandom to check if it's a terminal. --- sys_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_linux.c b/sys_linux.c index 3039a2c..8ac7302 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -504,7 +504,7 @@ SYS_Linux_EnableSystemCallFilter(int level) const static int fcntls[] = { F_GETFD, F_SETFD }; const static unsigned long ioctls[] = { - FIONREAD, + FIONREAD, TCGETS, #ifdef FEAT_PPS PTP_SYS_OFFSET, #endif