seccomp: allow clock_gettime64

xmppipe aborts with bad system call on raspbian 11 (debian bullseye).

Possibly fixes https://github.com/msantos/xmppipe/issues/7
master
Michael Santos 2 years ago
parent 7bbf51567b
commit fc84ad2e9b

@ -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

Loading…
Cancel
Save