]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: allow F_GETFL in seccomp filter
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Oct 2019 10:42:02 +0000 (12:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Oct 2019 10:48:45 +0000 (12:48 +0200)
This is needed for fdopen().

sys_linux.c

index 1f36696ce28ab4a613267d9ccb58163b117166e2..63eb8f1ce528e149be271c5f69c4bffbd233f6db 100644 (file)
@@ -529,7 +529,7 @@ SYS_Linux_EnableSystemCallFilter(int level)
 #endif
   };
 
-  const static int fcntls[] = { F_GETFD, F_SETFD, F_SETFL };
+  const static int fcntls[] = { F_GETFD, F_SETFD, F_GETFL, F_SETFL };
 
   const static unsigned long ioctls[] = {
     FIONREAD, TCGETS,