From: Miroslav Lichvar Date: Wed, 4 Nov 2015 13:53:00 +0000 (+0100) Subject: sys_linux: allow more syscalls in seccomp filter X-Git-Tag: 2.3-pre1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb1650ed81570e36238e9f09892525acf0a1373;p=thirdparty%2Fchrony.git sys_linux: allow more syscalls in seccomp filter These seem to be needed by getaddrinfo() in default NSS configuration on recent Fedora. --- diff --git a/sys_linux.c b/sys_linux.c index 092fd841..3039a2cc 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -460,15 +460,17 @@ SYS_Linux_EnableSystemCallFilter(int level) SCMP_SYS(adjtimex), SCMP_SYS(gettimeofday), SCMP_SYS(settimeofday), SCMP_SYS(time), /* Process */ - SCMP_SYS(clone), SCMP_SYS(exit), SCMP_SYS(exit_group), - SCMP_SYS(rt_sigreturn), SCMP_SYS(sigreturn), + SCMP_SYS(clone), SCMP_SYS(exit), SCMP_SYS(exit_group), SCMP_SYS(getrlimit), + SCMP_SYS(rt_sigaction), SCMP_SYS(rt_sigreturn), SCMP_SYS(rt_sigprocmask), + SCMP_SYS(set_tid_address), SCMP_SYS(sigreturn), /* Memory */ SCMP_SYS(brk), SCMP_SYS(madvise), SCMP_SYS(mmap), SCMP_SYS(mmap2), SCMP_SYS(mprotect), SCMP_SYS(munmap), SCMP_SYS(shmdt), /* Filesystem */ - 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(unlink), + 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), /* Socket */ SCMP_SYS(bind), SCMP_SYS(connect), SCMP_SYS(getsockname), SCMP_SYS(recvfrom), SCMP_SYS(recvmsg), SCMP_SYS(sendmmsg),