From c0f3065b94c1fa36933b28bc39fd57e6c5f25e3f Mon Sep 17 00:00:00 2001 From: lambdcalculus Date: Sat, 31 Dec 2022 17:20:57 -0300 Subject: [PATCH] unblocks required syscalls gettimeofday and clock_gettime --- zathura/seccomp-filters.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zathura/seccomp-filters.c b/zathura/seccomp-filters.c index 24d91d4..56b42b0 100644 --- a/zathura/seccomp-filters.c +++ b/zathura/seccomp-filters.c @@ -160,6 +160,7 @@ seccomp_enable_strict_filter(zathura_t* zathura) ALLOW_RULE(brk); /* ALLOW_RULE(clock_getres); unused? */ /* ALLOW_RULE(clone); specified below, clone3 see comment below */ + ALLOW_RULE(clock_gettime); ALLOW_RULE(close); ALLOW_RULE(eventfd2); ALLOW_RULE(exit); @@ -183,6 +184,7 @@ seccomp_enable_strict_filter(zathura_t* zathura) ALLOW_RULE(getpid); ALLOW_RULE(getppid); /* required inside containers */ ALLOW_RULE(gettid); + ALLOW_RULE(gettimeofday); ALLOW_RULE(getrandom); ALLOW_RULE(getresgid); ALLOW_RULE(getresuid);