From: Oleg Lyovin Date: Mon, 16 Oct 2023 16:59:00 +0000 (+0300) Subject: privsep: allow __NR_clock_gettime32 syscall (#254) X-Git-Tag: v10.0.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f1b730a8c25c2779fa01736575a494c3800d8c;p=thirdparty%2Fdhcpcd.git 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 --- 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