]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: allow getdents in seccomp filter
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 Sep 2016 08:35:57 +0000 (10:35 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Sep 2016 10:40:43 +0000 (12:40 +0200)
This is needed for glob(), which is used with the include and dumpdir
directives.

sys_linux.c

index c4f5c14a77de2dada8a8c6d5534b4ca916aa05cf..8f407db74f58b79b40490134f0687dbe681153e0 100644 (file)
@@ -463,9 +463,9 @@ SYS_Linux_EnableSystemCallFilter(int level)
     SCMP_SYS(mprotect), SCMP_SYS(mremap), SCMP_SYS(munmap), SCMP_SYS(shmdt),
     /* Filesystem */
     SCMP_SYS(access), SCMP_SYS(chmod), SCMP_SYS(chown), SCMP_SYS(chown32),
-    SCMP_SYS(fstat), SCMP_SYS(fstat64), SCMP_SYS(lseek), SCMP_SYS(rename),
-    SCMP_SYS(stat), SCMP_SYS(stat64), SCMP_SYS(statfs), SCMP_SYS(statfs64),
-    SCMP_SYS(unlink),
+    SCMP_SYS(fstat), SCMP_SYS(fstat64), SCMP_SYS(getdents), SCMP_SYS(getdents64),
+    SCMP_SYS(lseek), SCMP_SYS(rename), SCMP_SYS(stat), SCMP_SYS(stat64),
+    SCMP_SYS(statfs), SCMP_SYS(statfs64), SCMP_SYS(unlink),
     /* Socket */
     SCMP_SYS(bind), SCMP_SYS(connect), SCMP_SYS(getsockname),
     SCMP_SYS(recvfrom), SCMP_SYS(recvmmsg), SCMP_SYS(recvmsg),