From 52f1b730a8c25c2779fa01736575a494c3800d8c Mon Sep 17 00:00:00 2001 From: Oleg Lyovin Date: Mon, 16 Oct 2023 19:59:00 +0300 Subject: [PATCH] privsep: allow __NR_clock_gettime32 syscall (#254) musl libc doesn't have __NR_clock_gettime definition, but has __NR_clock_gettime32. clock_gettime implementation fallbacks to 32-bit version if 64-bit is not supported by the kernel. Signed-off-by: Oleg Lyovin --- src/privsep-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 6201b207..b748abcd 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -301,6 +301,9 @@ static struct sock_filter ps_seccomp_filter[] = { #if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT) SECCOMP_ALLOW(__NR_clock_gettime & ~__X32_SYSCALL_BIT), #endif +#ifdef __NR_clock_gettime32 + SECCOMP_ALLOW(__NR_clock_gettime32), +#endif #ifdef __NR_clock_gettime64 SECCOMP_ALLOW(__NR_clock_gettime64), #endif -- 2.47.2