diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-13 23:19:35 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-13 23:19:35 +1100 |
commit | b1c82f4b8adf3f42476d8a1f292df33fb7aa1a56 (patch) | |
tree | 9b9773e76008b045de587991019d6768dde3473d | |
parent | 2b523d23804c13cb68db135b919fcf312c42b580 (diff) |
seccomp: Allow clock_nanosleep() in sandbox.
seccomp: Allow clock_nanosleep() to make OpenSSH working with latest
glibc. Patch from Jakub Jelen <jjelen@redhat.com> via bz #3093.
-rw-r--r-- | sandbox-seccomp-filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index b5cda70bb..96ab141f7 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -242,6 +242,12 @@ static const struct sock_filter preauth_insns[] = { | |||
242 | #ifdef __NR_nanosleep | 242 | #ifdef __NR_nanosleep |
243 | SC_ALLOW(__NR_nanosleep), | 243 | SC_ALLOW(__NR_nanosleep), |
244 | #endif | 244 | #endif |
245 | #ifdef __NR_clock_nanosleep | ||
246 | SC_ALLOW(__NR_clock_nanosleep), | ||
247 | #endif | ||
248 | #ifdef __NR_clock_nanosleep | ||
249 | SC_ALLOW(__NR_clock_nanosleep), | ||
250 | #endif | ||
245 | #ifdef __NR__newselect | 251 | #ifdef __NR__newselect |
246 | SC_ALLOW(__NR__newselect), | 252 | SC_ALLOW(__NR__newselect), |
247 | #endif | 253 | #endif |