]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Allow nanosleep in preauth privsep child.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 13 Apr 2018 06:06:29 +0000 (16:06 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 13 Apr 2018 06:06:29 +0000 (16:06 +1000)
The new timing attack mitigation code uses nanosleep in the preauth
codepath, allow in sandbox.

sandbox-seccomp-filter.c

index ca75cc719b18f0a355638277d5276363370bd674..a189b2fb55223bb929274acc5fb6c726529e233b 100644 (file)
@@ -193,6 +193,9 @@ static const struct sock_filter preauth_insns[] = {
 #ifdef __NR_munmap
        SC_ALLOW(__NR_munmap),
 #endif
+#ifdef __NR_nanosleep
+       SC_ALLOW(__NR_nanosleep),
+#endif
 #ifdef __NR__newselect
        SC_ALLOW(__NR__newselect),
 #endif