From 958505ef3e0cf448baf197c85b21d259523590e2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 5 Feb 2025 13:35:49 +0000 Subject: [PATCH] privsep: Exit cleanly when built for address sanitization on Linux --- src/privsep-linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/privsep-linux.c b/src/privsep-linux.c index e3485a2e..c4172c83 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -444,6 +444,10 @@ static struct sock_filter ps_seccomp_filter[] = { #ifdef __NR_shutdown SECCOMP_ALLOW(__NR_shutdown), #endif +#ifdef __NR_sigaltstack + /* Allows a clean exit when compiled for address sanitization. */ + SECCOMP_ALLOW(__NR_sigaltstack), +#endif #ifdef __NR_statx SECCOMP_ALLOW(__NR_statx), #endif -- 2.47.3