summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-07 16:26:45 -0800
committerDarren Tucker <dtucker@dtucker.net>2020-01-08 12:21:08 +1100
commita991cc5ed5a7c455fefe909a30cf082011ef5dff (patch)
tree13781c65797c3d78a41a718c33066d421ab901e7
parent030b4c2b8029563bc8a9fd764288fde08fa2347c (diff)
seccomp: Allow clock_gettime64() in sandbox.
This helps sshd accept connections on mips platforms with upcoming glibc ( 2.31 )
-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 3ef30c9d..999c46c9 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -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