summaryrefslogtreecommitdiffstats
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-02-03 09:40:12 +0100
committerDamien Miller <djm@mindrot.org>2020-02-03 09:40:12 +0100
commitccd3b247d59d3bde16c3bef0ea888213fbd6da86 (patch)
tree7434f9e0493f8728570ecfa09078394e83b143cd /sandbox-seccomp-filter.c
parentupstream: Output (none) in debug in the case in the CheckHostIP=no case (diff)
downloadopenssh-ccd3b247d59d3bde16c3bef0ea888213fbd6da86.tar.xz
openssh-ccd3b247d59d3bde16c3bef0ea888213fbd6da86.zip
add clock_gettime64(2) to sandbox allowed syscalls
bz3093
Diffstat (limited to 'sandbox-seccomp-filter.c')
-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 0914e48ba..f80981faf 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -188,6 +188,9 @@ static const struct sock_filter preauth_insns[] = {
#ifdef __NR_clock_gettime
SC_ALLOW(__NR_clock_gettime),
#endif
+#ifdef __NR_clock_gettime64
+ SC_ALLOW(__NR_clock_gettime64),
+#endif
#ifdef __NR_close
SC_ALLOW(__NR_close),
#endif