]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: allow fcntl(F_SETFL) in seccomp filter
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 08:39:32 +0000 (10:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 15:21:02 +0000 (17:21 +0200)
This fixes commit 76bed76289575ba1640c02d370ae5304ef8c5fe2.

sys_linux.c

index 3d54483eb18d5356899983586431cf2c9e113ab1..978aa67c9b0f0a6196aaff8d3b83b76d27ffa329 100644 (file)
@@ -529,7 +529,7 @@ SYS_Linux_EnableSystemCallFilter(int level)
 #endif
   };
 
-  const static int fcntls[] = { F_GETFD, F_SETFD };
+  const static int fcntls[] = { F_GETFD, F_SETFD, F_SETFL };
 
   const static unsigned long ioctls[] = {
     FIONREAD, TCGETS,