From fc84ad2e9b361a5646fe3ccd1a8fe11fc6c93621 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Sat, 18 Jun 2022 10:07:14 -0400 Subject: [PATCH] seccomp: allow clock_gettime64 xmppipe aborts with bad system call on raspbian 11 (debian bullseye). Possibly fixes https://github.com/msantos/xmppipe/issues/7 --- src/restrict_process_seccomp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/restrict_process_seccomp.c b/src/restrict_process_seccomp.c index 7f74e99..5462a6c 100644 --- a/src/restrict_process_seccomp.c +++ b/src/restrict_process_seccomp.c @@ -179,6 +179,9 @@ int restrict_process_init(xmppipe_state_t *state) { #ifdef __NR_clock_gettime SC_ALLOW(clock_gettime), #endif +#ifdef __NR_clock_gettime64 + SC_ALLOW(clock_gettime64), +#endif #ifdef __NR_exit_group SC_ALLOW(exit_group), #endif @@ -355,6 +358,9 @@ int restrict_process_stdin(xmppipe_state_t *state) { #ifdef __NR_clock_gettime SC_ALLOW(clock_gettime), #endif +#ifdef __NR_clock_gettime64 + SC_ALLOW(clock_gettime64), +#endif #ifdef __NR_exit_group SC_ALLOW(exit_group), #endif