From 0e73428038d5ecfa5d2a28cff26661502a7aff4e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 13 Apr 2018 16:06:29 +1000 Subject: [PATCH] Allow nanosleep in preauth privsep child. The new timing attack mitigation code uses nanosleep in the preauth codepath, allow in sandbox. --- sandbox-seccomp-filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index ca75cc719..a189b2fb5 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c @@ -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