summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-12-16 13:55:56 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-12-16 13:55:56 +1100
commit5af6fd5461bb709304e6979c8b7856c7af921c9e (patch)
tree363965a04bbffe36d7b6d7e236f38a603453b69d /sandbox-seccomp-filter.c
parentfff8ff6dd580e1a72ba09a6775d185175cdc8d13 (diff)
downloadopenssh-git-5af6fd5461bb709304e6979c8b7856c7af921c9e.tar.gz
Allow clock_nanosleep_time64 in seccomp sandbox.
Needed on Linux ARM. bz#3100, patch from jjelen@redhat.com.
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 be239767..3ef30c9d 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -245,6 +245,9 @@ static const struct sock_filter preauth_insns[] = {
#ifdef __NR_clock_nanosleep
SC_ALLOW(__NR_clock_nanosleep),
#endif
+#ifdef __NR_clock_nanosleep_time64
+ SC_ALLOW(__NR_clock_nanosleep_time64),
+#endif
#ifdef __NR__newselect
SC_ALLOW(__NR__newselect),
#endif