]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
seccomp: Allow clock_gettime64() in sandbox.
authorKhem Raj <raj.khem@gmail.com>
Wed, 8 Jan 2020 00:26:45 +0000 (16:26 -0800)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 8 Jan 2020 01:10:00 +0000 (12:10 +1100)
This helps sshd accept connections on mips platforms with
upcoming glibc ( 2.31 )

sandbox-seccomp-filter.c

index 3ef30c9d5640e2fba95af2447e6ea3b25ad96a14..999c46c9fa544055c046c94dd118376590bd900d 100644 (file)
@@ -248,6 +248,9 @@ static const struct sock_filter preauth_insns[] = {
 #ifdef __NR_clock_nanosleep_time64
        SC_ALLOW(__NR_clock_nanosleep_time64),
 #endif
+#ifdef __NR_clock_gettime64
+       SC_ALLOW(__NR_clock_gettime64),
+#endif
 #ifdef __NR__newselect
        SC_ALLOW(__NR__newselect),
 #endif