summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-07 16:26:45 -0800
committerColin Watson <cjwatson@debian.org>2020-02-19 11:49:55 +0000
commitba675f490d681365db5a4e4ea6419e8690da6f30 (patch)
tree80caea514d08095a3c1968e581640f2ade06653b
parentf0cfb9ad4b83693731505c945c0685de64483c8d (diff)
seccomp: Allow clock_gettime64() in sandbox.
This helps sshd accept connections on mips platforms with upcoming glibc ( 2.31 ) Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=b110cefdfbf5a20f49b774a55062d6ded2fb6e22 Last-Update: 2020-01-11 Patch-Name: sandbox-seccomp-clock_gettime64.patch
-rw-r--r--sandbox-seccomp-filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index 3ef30c9d5..999c46c9f 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -248,6 +248,9 @@ static const struct sock_filter preauth_insns[] = {
248#ifdef __NR_clock_nanosleep_time64 248#ifdef __NR_clock_nanosleep_time64
249 SC_ALLOW(__NR_clock_nanosleep_time64), 249 SC_ALLOW(__NR_clock_nanosleep_time64),
250#endif 250#endif
251#ifdef __NR_clock_gettime64
252 SC_ALLOW(__NR_clock_gettime64),
253#endif
251#ifdef __NR__newselect 254#ifdef __NR__newselect
252 SC_ALLOW(__NR__newselect), 255 SC_ALLOW(__NR__newselect),
253#endif 256#endif