From: Roy Marples Date: Wed, 5 Feb 2025 13:35:49 +0000 (+0000) Subject: privsep: Exit cleanly when built for address sanitization on Linux X-Git-Tag: v10.2.0~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=958505ef3e0cf448baf197c85b21d259523590e2;p=thirdparty%2Fdhcpcd.git privsep: Exit cleanly when built for address sanitization on Linux --- 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